Class ResponseAppService
Inheritance
ResponseAppService
Assembly: Volo.Forms.Application.dll
[RequiresFeature(new string[] { "Volo.Forms.Enable" })]
public class ResponseAppService : FormsAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IResponseAppService, IApplicationService, IRemoteService
Constructors
Declaration
public ResponseAppService(IResponseRepository responseRepository, IFormRepository formRepository, IQuestionRepository questionRepository)
Parameters
Properties
Declaration
protected IFormRepository FormRepository { get; }
Property Value
Declaration
protected IQuestionRepository QuestionRepository { get; }
Property Value
Declaration
protected IResponseRepository ResponseRepository { get; }
Property Value
Methods
Declaration
[Authorize("Forms.Response.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
public virtual Task<FormResponseDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
public virtual Task<FormDto> GetFormDetailsAsync(Guid formId)
Parameters
Type |
Name |
Description |
Guid |
formId |
|
Returns
Declaration
public virtual Task<PagedResultDto<FormResponseDto>> GetListAsync(GetUserFormListInputDto input)
Parameters
Returns
Declaration
public virtual Task<List<QuestionWithAnswersDto>> GetQuestionsWithAnswersAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
public virtual Task<PagedResultDto<FormWithResponseDto>> GetUserFormsByUserIdAsync(Guid userId)
Parameters
Type |
Name |
Description |
Guid |
userId |
|
Returns
Declaration
public virtual Task<FormResponseDto> SaveAnswersAsync(Guid formId, CreateResponseDto input)
Parameters
Returns
Declaration
public virtual Task<FormResponseDto> UpdateAnswersAsync(Guid id, UpdateResponseDto input)
Parameters
Returns
Implements
Extension Methods