Beispiel #1
0
        public async Task <BusinessResult <UserDTO> > GetById(int id)
        {
            try
            {
                var resultOperation = await _iuserModel.GetById(id);

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