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