Exemple #1
0
        public async Task <ListQueryResult <CreditRequestDto> > GetCommiteeCreditRequestDtosAsync(CommiteeCreditRequestsQuery query)
        {
            var rightsRes = await CheckEmployeeRightsAsync(query.EmployeeId, EmployeeRights.CreditCommitteeMember);

            if (rightsRes.IsFailed)
            {
                return(new ListQueryResult <CreditRequestDto>(query, null, false).From(rightsRes));
            }
            return(Filter(await _creditRequestService.GetCommiteeRequestsDtosAsync(new CommiteeRequestsQuery()), query));
        }