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