C# 클래스 Tailspin.Surveys.Web.Controllers.SurveyController

상속: Microsoft.AspNet.Mvc.Controller
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Contributors() 공개 메소드

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

Delete() 공개 메소드

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

Details() 공개 메소드

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

Edit() 공개 메소드

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

EditTitle() 공개 메소드

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
리턴 Task

Index() 공개 메소드

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
리턴 Task

ListPerTenant() 공개 메소드

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

Publish() 공개 메소드

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

RequestContributor() 공개 메소드

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

SurveyController() 공개 메소드

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

UnPublish() 공개 메소드

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