Example #1
0
        public ListQueryResult <CreditRequestDto> GetCommiteeCreditRequestDtos(CommiteeCreditRequestsQuery query)
        {
            var rightsRes = CheckEmployeeRights(query.EmployeeId, EmployeeRights.CreditCommitteeMember);

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