コード例 #1
0
        public async Task <BusinessResult <UserDTO> > GetBy(Expression <Func <UserDTO, bool> > condition)
        {
            try
            {
                var resultOperation = await _iuserModel.GetBy(condition);

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