示例#1
0
        public static MvcHtmlString PSMonthYearSelection(this HtmlHelper htmlHelper, string id)
        {
            MonthYearSelectionModel requestModel = new MonthYearSelectionModel
            {
                ID = id,
                MonthYearOptions = MonthYearSelectionOptions.Last5Years
            };

            MonthYearSelectionModel model = MonthYearSelectionController.GetMonthYearSelectionModel(requestModel);

            return(htmlHelper.Partial("~/Controls/MonthYear/Views/MonthYear.cshtml", model));
        }
示例#2
0
        public static MvcHtmlString PSMonthYearSelection(this HtmlHelper htmlHelper, MonthYearSelectionModel requestModel)
        {
            MonthYearSelectionModel model = MonthYearSelectionController.GetMonthYearSelectionModel(requestModel);

            return(htmlHelper.Partial("~/Controls/MonthYear/Views/MonthYear.cshtml", model));
        }