Example #1
0
File: Url.cs Project: war-man/Cfood
        public static string article(string title = "", int id = 0)
        {
            string url    = "/" + Ultility.URITitle(title) + "-n" + id + ".html";
            string anchor = "<a href=\"" + url + "\">" + title + "</a>";

            return(anchor);
        }
Example #2
0
 public static string ToSlug(this string title)
 {
     return(Ultility.URITitle(title));
 }
Example #3
0
File: Url.cs Project: war-man/Cfood
        public static string productURL(string title = "", int id = 0, string ext = "html")
        {
            string url = "/" + Ultility.URITitle(title) + "-d" + id + "." + ext;

            return(url);
        }
Example #4
0
File: Url.cs Project: war-man/Cfood
 public static string videoURL(string title = "", int id = 0)
 {
     return("/" + Ultility.URITitle(title) + "-youtube" + id + ".html");
 }
Example #5
0
File: Url.cs Project: war-man/Cfood
        public static string productCategoryURL(string title = "", int id = 0)
        {
            string url = "/" + Ultility.URITitle(title) + "-t" + id + ".html";

            return(url);
        }