/// <summary> /// Gets All the lead Validation. /// </summary> /// <param name="leadValidationParameter">The lead Validation parameters.</param> /// <returns></returns> public async Task <PagedList <Entity> > GetAllLeadValidation(LeadValidationParameter leadValidationParameter) { var leadValidation = FindByCondition(x => x.Active == Convert.ToInt16(true)).ProjectTo <LeadValidationResponse>(mapper.ConfigurationProvider); var sortedValidation = sortHelper.ApplySort(leadValidation, leadValidationParameter.OrderBy); var shapedValidation = dataShaper.ShapeData(sortedValidation, leadValidationParameter.Fields); return(await PagedList <Entity> .ToPagedList(shapedValidation, leadValidationParameter.PageNumber, leadValidationParameter.PageSize)); }
/// <summary> /// Initializes a new instance of the <see cref="GetAllLeadValidationQuery"/> class. /// </summary> /// <param name="leadValidationParameter">The lead Validation parameters.</param> public GetAllLeadValidationQuery(LeadValidationParameter leadValidationParameter) { LeadValidationParameter = leadValidationParameter; }