Пример #1
0
 public bool DeleteUserRole(UserRole entity)
 {
     if (entity == null) return false;
     _unitOfWork.UserRoleRepository.Delete(entity);
     _unitOfWork.Save();
     return true;
 }
Пример #2
0
 public bool EditUserRole(UserRole entity)
 {
     _unitOfWork.UserRoleRepository.Edit(entity);
     _unitOfWork.Save();
     return true;
 }
Пример #3
0
 public bool AddUserRole(UserRole entity)
 {
     _unitOfWork.UserRoleRepository.Add(entity);
     _unitOfWork.Save();
     return true;
 }