public static string CaseArchiveYear(this UrlHelper urlHelper, CasePart cAsePart, int year)
        {
            var cAsePath = cAsePart.As <IAliasAspect>().Path;

            return(urlHelper.Action("ListByArchive", "CasePost", new { path = (string.IsNullOrWhiteSpace(cAsePath) ? "archive/" : cAsePath + "/archive/") + year.ToString(), area = "LawBookCases.Module" }));
        }
        public static string CaseArchiveDay(this UrlHelper urlHelper, CasePart cAsePart, int year, int month, int day)
        {
            var cAsePath = cAsePart.As <IAliasAspect>().Path;

            return(urlHelper.Action("ListByArchive", "CasePost", new { path = (string.IsNullOrWhiteSpace(cAsePath) ? "archive/" : cAsePath + "/archive/") + string.Format("{0}/{1}/{2}", year, month, day), area = "LawBookCases.Module" }));
        }
 public static string CaseRsd(this UrlHelper urlHelper, CasePart cAsePart)
 {
     return(urlHelper.AbsoluteAction(() => urlHelper.Action("Rsd", "RemoteCasePublishing", new { path = cAsePart.As <IAliasAspect>().Path + "/rsd", area = "LawBookCases.Module" })));
 }