C# Class Tailspin.Surveys.Web.Controllers.SurveyController

Inheritance: Microsoft.AspNet.Mvc.Controller
Show file Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps Class Usage Examples

Public Methods

Method Description
Contributors ( int id ) : Task

This action shows a list of contributors associated with a specific Survey.

Delete ( int id ) : Task

This action provides the Http Get experience for deleting a Survey.

Details ( int id ) : Task

This action shows the details of a specific Survey.

Edit ( int id ) : Task

This action provides the Http Get experience for editing a Survey.

EditTitle ( int id ) : Task

This action provides the Http Get experience for editing the title of a Survey

Index ( ) : Task

This action shows a list of Surveys related to the user. This includes Surveys that the user owns, Surveys that the user contributes to, and Surveys the user has published. This action also calls the SurveyService to process pending contributor requests.

ListPerTenant ( ) : Task

This action shows a list of Surveys owned by users in the same Tenant as the current user.

Publish ( int id ) : Task

This action provides the Http Get experience for publishing a Survey.

RequestContributor ( int id ) : Task

This action provides the Http Get experience for creating a ContributorRequest.

SurveyController ( ISurveyService surveyService, ILogger logger, IAuthorizationService authorizationService ) : System.Net
UnPublish ( int id ) : Task

This action provides the Http Get experience for unpublishing a Survey.

Private Methods

Method Description
CheckStatusCode ( ApiResult result ) : IActionResult
Create ( ) : IActionResult
Create ( SurveyDTO survey ) : Task
Delete ( [ model ) : Task
EditTitle ( [ model ) : Task
Publish ( [ model ) : Task
ReAuthenticateUser ( ) : IActionResult
RequestContributor ( SurveyContributorRequestViewModel contributorRequestViewModel ) : Task
UnPublish ( [ model ) : Task

Method Details

Contributors() public method

This action shows a list of contributors associated with a specific Survey.
public Contributors ( int id ) : Task
id int The id of the
return Task

Delete() public method

This action provides the Http Get experience for deleting a Survey.
public Delete ( int id ) : Task
id int The id for the
return Task

Details() public method

This action shows the details of a specific Survey.
public Details ( int id ) : Task
id int The id of the
return Task

Edit() public method

This action provides the Http Get experience for editing a Survey.
public Edit ( int id ) : Task
id int The id of the
return Task

EditTitle() public method

This action provides the Http Get experience for editing the title of a Survey
public EditTitle ( int id ) : Task
id int The id of the
return Task

Index() public method

This action shows a list of Surveys related to the user. This includes Surveys that the user owns, Surveys that the user contributes to, and Surveys the user has published. This action also calls the SurveyService to process pending contributor requests.
public Index ( ) : Task
return Task

ListPerTenant() public method

This action shows a list of Surveys owned by users in the same Tenant as the current user.
public ListPerTenant ( ) : Task
return Task

Publish() public method

This action provides the Http Get experience for publishing a Survey.
public Publish ( int id ) : Task
id int The id of the
return Task

RequestContributor() public method

This action provides the Http Get experience for creating a ContributorRequest.
public RequestContributor ( int id ) : Task
id int The id of the
return Task

SurveyController() public method

public SurveyController ( ISurveyService surveyService, ILogger logger, IAuthorizationService authorizationService ) : System.Net
surveyService ISurveyService
logger ILogger
authorizationService IAuthorizationService
return System.Net

UnPublish() public method

This action provides the Http Get experience for unpublishing a Survey.
public UnPublish ( int id ) : Task
id int The id of the
return Task