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)); } }
public void Delete(string userId) { _userModel.Delete(userId); }