public virtual UserWebLink CreateWebLink(WebLinkContract contract) { ParamIs.NotNull(() => contract); var link = new UserWebLink(this, contract); WebLinks.Add(link); return(link); }
public virtual bool Equals(UserWebLink another) { if (another == null) return false; if (ReferenceEquals(this, another)) return true; if (Id == 0) return false; return this.Id == another.Id; }
public virtual bool Equals(UserWebLink another) { if (another == null) { return(false); } if (ReferenceEquals(this, another)) { return(true); } if (Id == 0) { return(false); } return(this.Id == another.Id); }