Example #1
0
        public ListQueryResult <CreditRequestDto> GetOperatorCreditRequestDtos(OperatorCreditRequestsQuery query)
        {
            var rightsRes = CheckEmployeeRights(query.EmployeeId, EmployeeRights.Operator);

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