public Task <IEnumerable <CreditRequestDto> > HandleAsync(DepartmentRequestsQuery query) { return(ModelsDao.Where( m => (m.IsOperatorApproved ?? false) && (m.IsSecurityApproved ?? false) && (m.IsCreditCommitteeApproved ?? false) && m.IsCreditDepartmentApproved == null) .MapToAsync <CreditRequestDto>()); }
public async Task <ListQueryResult <CreditRequestViewModel> > GetDepartmentRequestsAsync(DepartmentRequestsQuery query) { return((await RunListQueryAsync <DepartmentRequestsQuery, CreditRequestDto>(_queryRepository, query)) .MapTo <CreditRequestViewModel>()); }
public async Task <ListQueryResult <CreditRequestDto> > GetDepartmentRequestsDtosAsync(DepartmentRequestsQuery query) { return(await RunListQueryAsync <DepartmentRequestsQuery, CreditRequestDto>(_queryRepository, query)); }
public ListQueryResult <CreditRequestViewModel> GetDepartmentRequests(DepartmentRequestsQuery query) { return(RunListQuery <DepartmentRequestsQuery, CreditRequestDto>(_queryRepository, query) .MapTo <CreditRequestViewModel>()); }
public ListQueryResult <CreditRequestDto> GetDepartmentRequestsDtos(DepartmentRequestsQuery query) { return(RunListQuery <DepartmentRequestsQuery, CreditRequestDto>(_queryRepository, query)); }