Show / Hide Table of Contents

Class ResponseAppService

Inheritance
object
ApplicationService
FormsAppServiceBase
ResponseAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IResponseAppService
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Forms.Responses
Assembly: Volo.Forms.Application.dll
Syntax
[RequiresFeature(new string[] { "Volo.Forms.Enable" })]
public class ResponseAppService : FormsAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, 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

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IResponseAppService
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform