public static string CasesYearAction(this UrlHelper urlHelper, CasePart cAsePart, int year) { Orchard.Autoroute.Models.AutoroutePart asa = cAsePart.Get <Orchard.Autoroute.Models.AutoroutePart>(); string autoRoutroot = asa.Path; return(autoRoutroot + "/" + year); }
public static string GetRoortAction(this UrlHelper urlHelper, CasePart cAsePart) { Orchard.Autoroute.Models.AutoroutePart asa = cAsePart.Get <Orchard.Autoroute.Models.AutoroutePart>(); string autoRoutroot = asa.Path; return(autoRoutroot); }
public static string CasesAutoroute(this UrlHelper urlHelper, CasePart cAsePart, int year, int casenum) { Orchard.Autoroute.Models.AutoroutePart asa = cAsePart.Get <Orchard.Autoroute.Models.AutoroutePart>(); string autoRoutroot = asa.Path; if (urlHelper.RequestContext.HttpContext.Request.RawUrl.ToString().Length > 4) { return(urlHelper.RequestContext.HttpContext.Request.RawUrl + autoRoutroot + "/" + year + "/" + casenum); } return(autoRoutroot + "/" + year + "/" + casenum); }