示例#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;
 }