Show / Hide Table of Contents

Class ResponseController

Inheritance
object
ResponseController
Implements
IResponseAppService
IApplicationService
IRemoteService
Namespace: Volo.Forms.Responses
Assembly: Volo.Forms.HttpApi.dll
Syntax
[Area("form")]
[Route("api/responses")]
public class ResponseController : AbpControllerBase, IResponseAppService, IApplicationService, IRemoteService

Constructors

ResponseController(IResponseAppService)

Declaration
public ResponseController(IResponseAppService responseAppService)
Parameters
Type Name Description
IResponseAppService responseAppService

Properties

ResponseAppService

Declaration
protected IResponseAppService ResponseAppService { get; }
Property Value
Type Description
IResponseAppService

Methods

DeleteAsync(Guid)

Declaration
[HttpDelete]
[Route("{id}")]
public Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetAsync(Guid)

Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<FormResponseDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<FormResponseDto>

GetFormDetailsAsync(Guid)

Declaration
[HttpGet]
[Route("form-details/{formId}")]
public virtual Task<FormDto> GetFormDetailsAsync(Guid formId)
Parameters
Type Name Description
Guid formId
Returns
Type Description
Task<FormDto>

GetListAsync(GetUserFormListInputDto)

Declaration
[HttpGet]
public virtual Task<PagedResultDto<FormResponseDto>> GetListAsync(GetUserFormListInputDto input)
Parameters
Type Name Description
GetUserFormListInputDto input
Returns
Type Description
Task<PagedResultDto<FormResponseDto>>

GetQuestionsWithAnswersAsync(Guid)

Declaration
[HttpGet]
[Route("{id}/questions-with-answers")]
public Task<List<QuestionWithAnswersDto>> GetQuestionsWithAnswersAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<List<QuestionWithAnswersDto>>

GetUserFormsByUserIdAsync(Guid)

Declaration
[HttpGet]
[Route("{userId}/response")]
public virtual Task<PagedResultDto<FormWithResponseDto>> GetUserFormsByUserIdAsync(Guid userId)
Parameters
Type Name Description
Guid userId
Returns
Type Description
Task<PagedResultDto<FormWithResponseDto>>

SaveAnswersAsync(Guid, CreateResponseDto)

Declaration
[HttpPost]
public virtual Task<FormResponseDto> SaveAnswersAsync(Guid formId, CreateResponseDto input)
Parameters
Type Name Description
Guid formId
CreateResponseDto input
Returns
Type Description
Task<FormResponseDto>

UpdateAnswersAsync(Guid, UpdateResponseDto)

Declaration
[HttpPost]
[Route("{id}")]
public virtual Task<FormResponseDto> UpdateAnswersAsync(Guid id, UpdateResponseDto input)
Parameters
Type Name Description
Guid id
UpdateResponseDto input
Returns
Type Description
Task<FormResponseDto>

Implements

IResponseAppService
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
In this article
Back to top Powered by Volosoft