/// <summary> /// Update 1 role /// </summary> /// <param name="role"></param> public void Update(Role role) { if (role == null) { throw new ArgumentNullException("Invalid Role"); } Context.SaveChanges(); }
/// <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(); }