Beispiel #1
0
 /// <summary>
 /// Update 1 role
 /// </summary>
 /// <param name="role"></param>
 public void Update(Role role)
 {
     if (role == null)
     {
         throw new ArgumentNullException("Invalid Role");
     }
     Context.SaveChanges();
 }
Beispiel #2
0
 /// <summary>
 /// Xóa 1 role
 /// </summary>
 /// <param name="role"></param>
 public void Delete(Role role)
 {
     if (role == null)
     {
         throw new ArgumentNullException("Invalid Role");
     }
     _roleRepository.Delete(role);
     Context.SaveChanges();
 }