private string GenerateLinkToList(MenuItemAssociationType associationType, MenuItemEntityType menuEntityType, Guid?blogCategoryId) { if (MenuItemAssociationType.LINK_TO_LIST.Equals(associationType) && MenuItemEntityType.BLOG.Equals(menuEntityType)) { return(string.Format("/{0}/{1}?BlogCategoryId={2}", menuEntityType.ToString().ToLower(), WebConstants.VIEW_INDEX, blogCategoryId)); } return(string.Format("/{0}/{1}", menuEntityType.ToString().ToLower(), WebConstants.VIEW_INDEX)); }
private string GenerateLinkToSpecificLink(MenuItemEntityType menuEntityType, ReferenceString userDefinableReference) { return(string.Format("/{0}/{1}/{2}", menuEntityType.ToString().ToLower(), WebConstants.VIEW_DETAILS, userDefinableReference.GetId())); }
private string GenerateLinkToList(MenuItemAssociationType associationType, MenuItemEntityType menuEntityType, Guid?blogCategoryId) { return(string.Format("/{0}/{1}", menuEntityType.ToString().ToLower(), WebConstants.VIEW_INDEX)); }