private bool IsValid(TagBaseContract contract) { if (contract == null) { return(false); } if (HasId(contract)) { return(true); } return(!string.IsNullOrEmpty(contract.Name)); }
private bool HasId(TagBaseContract contract) { return(contract.Id > 0); }
public static string TagDetails(this UrlHelper urlHelper, TagBaseContract tagContract) { ParamIs.NotNull(() => tagContract); return(EntryDetails(urlHelper, EntryType.Tag, tagContract.Id, tagContract.UrlSlug)); }
public TagLinkViewModel(TagBaseContract tag, bool tooltip = false) { Tag = tag; Tooltip = tooltip; }