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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Delete() public méthode

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

Details() public méthode

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

Edit() public méthode

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

EditTitle() public méthode

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
Résultat Task

Index() public méthode

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
Résultat Task

ListPerTenant() public méthode

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

Publish() public méthode

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

RequestContributor() public méthode

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

SurveyController() public méthode

public SurveyController ( ISurveyService surveyService, ILogger logger, IAuthorizationService authorizationService ) : System.Net
surveyService ISurveyService
logger ILogger
authorizationService IAuthorizationService
Résultat System.Net

UnPublish() public méthode

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