Example #1
0
        public async Task <BusinessResult <List <UserDTO> > > GetAllBy(Expression <Func <UserDTO, bool> > condition)
        {
            try
            {
                var resultOperation = await _iuserModel.GetAllBy(condition);

                return(BusinessResult <List <UserDTO> > .Success(resultOperation, General.OperationSucsess));
            }
            catch (Exception ex)
            {
                return(BusinessResult <List <UserDTO> > .Issue(null, General.OperationIssue, ex));
            }
        }