Ejemplo n.º 1
0
        public async Task <BusinessResult <List <UserDTO> > > GetAll(int quantity = 0)
        {
            try
            {
                var resultOperation = await _iuserModel.GetAll(quantity);

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