Show / Hide Table of Contents

Class ResponseAppService

Inheritance
object
FormsAppServiceBase
ResponseAppService
Implements
IResponseAppService
IApplicationService
IRemoteService
Namespace: Volo.Forms.Responses
Assembly: Volo.Forms.Application.dll
Syntax
public class ResponseAppService : FormsAppServiceBase, IResponseAppService, IApplicationService, IRemoteService

Constructors

ResponseAppService(IResponseRepository, IFormRepository, IQuestionRepository)

Declaration
public ResponseAppService(IResponseRepository responseRepository, IFormRepository formRepository, IQuestionRepository questionRepository)
Parameters
Type Name Description
IResponseRepository responseRepository
IFormRepository formRepository
IQuestionRepository questionRepository

Properties

FormRepository

Declaration
protected IFormRepository FormRepository { get; }
Property Value
Type Description
IFormRepository

QuestionRepository

Declaration
protected IQuestionRepository QuestionRepository { get; }
Property Value
Type Description
IQuestionRepository

ResponseRepository

Declaration
protected IResponseRepository ResponseRepository { get; }
Property Value
Type Description
IResponseRepository

Methods

DeleteAsync(Guid)

Declaration
[Authorize("Forms.Response.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetAsync(Guid)

Declaration
public virtual Task<FormResponseDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<FormResponseDto>

GetFormDetailsAsync(Guid)

Declaration
public virtual Task<FormDto> GetFormDetailsAsync(Guid formId)
Parameters
Type Name Description
Guid formId
Returns
Type Description
Task<FormDto>

GetListAsync(GetUserFormListInputDto)

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

GetQuestionsWithAnswersAsync(Guid)

Declaration
public virtual Task<List<QuestionWithAnswersDto>> GetQuestionsWithAnswersAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<List<QuestionWithAnswersDto>>

GetUserFormsByUserIdAsync(Guid)

Declaration
public virtual Task<PagedResultDto<FormWithResponseDto>> GetUserFormsByUserIdAsync(Guid userId)
Parameters
Type Name Description
Guid userId
Returns
Type Description
Task<PagedResultDto<FormWithResponseDto>>

SaveAnswersAsync(Guid, CreateResponseDto)

Declaration
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
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