public Task <IEnumerable <CreditRequestDto> > HandleAsync(CommiteeRequestsQuery query) { return(ModelsDao.Where( m => (m.IsOperatorApproved ?? false) && (m.IsSecurityApproved ?? false) && m.IsCreditCommitteeApproved == null).MapToAsync <CreditRequestDto>()); }
public ListQueryResult <CreditRequestDto> GetCommiteeRequestsDtos(CommiteeRequestsQuery query) { return(RunListQuery <CommiteeRequestsQuery, CreditRequestDto>(_queryRepository, query)); }
public ListQueryResult <CreditRequestViewModel> GetCommiteeRequests(CommiteeRequestsQuery query) { return(RunListQuery <CommiteeRequestsQuery, CreditRequestDto>(_queryRepository, query) .MapTo <CreditRequestViewModel>()); }
public async Task <ListQueryResult <CreditRequestViewModel> > GetCommiteeRequestsAsync(CommiteeRequestsQuery query) { return((await RunListQueryAsync <CommiteeRequestsQuery, CreditRequestDto>(_queryRepository, query)) .MapTo <CreditRequestViewModel>()); }
public async Task <ListQueryResult <CreditRequestDto> > GetCommiteeRequestsDtosAsync(CommiteeRequestsQuery query) { return(await RunListQueryAsync <CommiteeRequestsQuery, CreditRequestDto>(_queryRepository, query)); }