Exemple #1
0
 public void UpdateRole(Role entity)
 {
     try
     {
         _unitOfWork.RoleRepository.Update(entity);
         _unitOfWork.SaveChanges();
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }
Exemple #2
0
 public void AddRole(Role entity)
 {
     _unitOfWork.RoleRepository.Add(entity);
     _unitOfWork.SaveChanges();
 }
Exemple #3
0
 public void RemoveRole(Role entity)
 {
     _unitOfWork.RoleRepository.Remove(entity);
     _unitOfWork.SaveChanges();
 }