Пример #1
0
        public async Task <BusinessResult <bool> > Delete(int id)
        {
            try
            {
                var resultOperation = await _iuserModel.Delete(id);

                return(BusinessResult <bool> .Success(resultOperation, General.OperationSucsess));
            }
            catch (Exception ex)
            {
                return(BusinessResult <bool> .Issue(false, General.OperationIssue, ex));
            }
        }
Пример #2
0
 public void Delete(string userId)
 {
     _userModel.Delete(userId);
 }