public void RemoveAuth(AuthorityType e, User user) { var ele = TimeAxisAuthority.FirstOrDefault(x => x.AuthorityType == e && x.User.Id == user.Id); if (ele != null) { TimeAxisAuthority.Remove(ele); } }
public void RemoveAuth(TimeAxisAuthority e) { TimeAxisAuthority.Remove(e); }