public ActionResult _AjaxIndex([DataSourceRequest] DataSourceRequest request, string Lang) { IQueryable <ContentUnitMeasure> items = RP.GetContentUnitMeasures().AsQueryable(); DataSourceResult result = items.ToDataSourceResult(request); return(Json(result)); }
public ActionResult Index(string lang) { if (string.IsNullOrEmpty(lang)) { ViewBag.Lang = SF.GetLangCodeThreading(); } else { ViewBag.Lang = lang; } ViewBag.ContentUnitMeasures = RP.GetContentUnitMeasures(); return(View()); }