Example #1
0
        public static string ActionLinkImageEx <TController>(this HtmlHelper helper,
                                                             Expression <Action <TController> > action, string content)
            where TController : Controller
        {
            var html = String.Format(helper.ActionLinkEx(action, "{0}"), content);

            return(html);
        }
Example #2
0
 public static string GroupsLinkForComplex(this HtmlHelper helper,
                                           string complexTC)
 {
     return(helper.ActionLinkEx <GroupController>(
                gc => gc.List(new GroupFilter {
         ComplexTC = complexTC
     }, 1),
                "Расписание"));
 }
Example #3
0
 public static string GroupsLinkForCourseText(this HtmlHelper helper,
                                              string courseTC)
 {
     return(helper.ActionLinkEx <GroupController>(
                gc => gc.List(new GroupFilter {
         CourseTC = courseTC
     }, 1),
                "Полное расписание курса"));
 }
Example #4
0
        /*    public static string ActionLink<TController>(this HtmlHelper helper,
         *      Expression<Action<TController>> action, string text, string fragment)
         *      where TController : Controller {
         *      var html = helper.ActionLink(action, fragment);
         *
         *      return html;
         *  }*/

        public static string ActionLinkImageEx <TController>(this HtmlHelper helper,
                                                             Expression <Action <TController> > action, string imageRelativeUrl, string alt,
                                                             object attrs = null)
            where TController : Controller
        {
            var html = String.Format(helper.ActionLinkEx(action, "{0}", attrs),
                                     helper.Image(imageRelativeUrl, alt));

            return(html);
        }
Example #5
0
 public static string ActionLinkEx <TController>(this HtmlHelper helper,
                                                 Expression <Action <TController> > action, string linkText)
     where TController : Controller
 {
     return(helper.ActionLinkEx(action, linkText, null));
 }