C# Класс Tailspin.Surveys.Web.Controllers.SurveyController

Наследование: Microsoft.AspNet.Mvc.Controller
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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