Example #1
0
        public ActionResult _AjaxIndex([DataSourceRequest] DataSourceRequest request, string Lang)
        {
            IQueryable <ContentUnitMeasure> items = RP.GetContentUnitMeasures().AsQueryable();
            DataSourceResult result = items.ToDataSourceResult(request);

            return(Json(result));
        }
Example #2
0
        public ActionResult Index(string lang)
        {
            if (string.IsNullOrEmpty(lang))
            {
                ViewBag.Lang = SF.GetLangCodeThreading();
            }
            else
            {
                ViewBag.Lang = lang;
            }

            ViewBag.ContentUnitMeasures = RP.GetContentUnitMeasures();
            return(View());
        }