示例#1
0
 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));
 }
示例#2
0
 private string GenerateLinkToSpecificLink(MenuItemEntityType menuEntityType, ReferenceString userDefinableReference)
 {
     return(string.Format("/{0}/{1}/{2}", menuEntityType.ToString().ToLower(), WebConstants.VIEW_DETAILS, userDefinableReference.GetId()));
 }
示例#3
0
 private string GenerateLinkToList(MenuItemAssociationType associationType, MenuItemEntityType menuEntityType, Guid?blogCategoryId)
 {
     return(string.Format("/{0}/{1}", menuEntityType.ToString().ToLower(), WebConstants.VIEW_INDEX));
 }