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

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

Public Methods

Method Description
Create ( int id ) : IActionResult

This action provides the Http Get experience for creating a Tailspin.Surveys.Data.DataModels.Question in the context of a Tailspin.Surveys.Data.DataModels.Survey.

Delete ( int id ) : Task

This action provides the Http Get experience for deleting a Tailspin.Surveys.Data.DataModels.Question.

Edit ( int id ) : Task

This action provides the Http Get experience for editing a Tailspin.Surveys.Data.DataModels.Question.

QuestionController ( IQuestionService questionsClient, SignInManager signInManager ) : System.Net

Private Methods

Method Description
CheckStatusCode ( ApiResult result ) : IActionResult
Create ( QuestionDTO question ) : Task
Delete ( QuestionDTO question ) : Task
Edit ( QuestionDTO question ) : Task
ReAuthenticateUser ( ) : IActionResult

Method Details

Create() public method

This action provides the Http Get experience for creating a Tailspin.Surveys.Data.DataModels.Question in the context of a Tailspin.Surveys.Data.DataModels.Survey.
public Create ( int id ) : IActionResult
id int The id of a
return IActionResult

Delete() public method

This action provides the Http Get experience for deleting a Tailspin.Surveys.Data.DataModels.Question.
public Delete ( int id ) : Task
id int The id of the
return Task

Edit() public method

This action provides the Http Get experience for editing a Tailspin.Surveys.Data.DataModels.Question.
public Edit ( int id ) : Task
id int The id of a
return Task

QuestionController() public method

public QuestionController ( IQuestionService questionsClient, SignInManager signInManager ) : System.Net
questionsClient IQuestionService
signInManager Tailspin.Surveys.Web.Security.SignInManager
return System.Net