public bool DeleteUserRole(UserRole entity) { if (entity == null) return false; _unitOfWork.UserRoleRepository.Delete(entity); _unitOfWork.Save(); return true; }
public bool EditUserRole(UserRole entity) { _unitOfWork.UserRoleRepository.Edit(entity); _unitOfWork.Save(); return true; }
public bool AddUserRole(UserRole entity) { _unitOfWork.UserRoleRepository.Add(entity); _unitOfWork.Save(); return true; }