public ActionResult ItemList(ListViewModel viewModel)
 {
     var url = UrlContext.GetUrlForAction<LoginStatisticsListController>(x => x.Items(null));
     var gridDefinition = _grid.GetGridDefinition(url);
     var model = new ListViewModel
     {
         Title = WebLocalizationKeys.LOGIN_INFORMATION.ToString(),
         gridDef= gridDefinition,
     };
     return Json(model,JsonRequestBehavior.AllowGet);
 }
 public ActionResult ItemList(ListViewModel input)
 {
     var url = UrlContext.GetUrlForAction<UserGroupListController>(x => x.Items(null));
     var gridDefinition = _grid.GetGridDefinition(url);
     var model = new ListViewModel
     {
         Title = WebLocalizationKeys.USER_GROUPS.ToString(),
         addUpdateRoute = SystemSupportViewOptions.GetOption<UserGroupController>(x=>x.AddUpdate(null),AreaName.Permissions).route,
         gridDef= gridDefinition
     };
     return Json(model,JsonRequestBehavior.AllowGet);
 }
 public ActionResult ItemList(ViewModel input)
 {
     var url = UrlContext.GetUrlForAction<EmailTemplateListController>(x=>x.Items(null))+"/"+input.EntityId;
     var gridDefinition = _grid.GetGridDefinition(url);
     var model = new ListViewModel
     {
         _Title = WebLocalizationKeys.EMAIL_TEMPLATE.ToString(),
         gridDef = gridDefinition,
         ParentId = input.EntityId
     };
     model.headerButtons.Add("new");
     return Json(model,JsonRequestBehavior.AllowGet);
 }
 public ActionResult ItemList(ViewModel input)
 {
     var addUpdateUrl = UrlContext.GetUrlForAction<CompanyController>(x => x.AddUpdate(null));
     var url = UrlContext.GetUrlForAction<CompanyListController>(x=>x.Items(null));
     var gridDefinition = _grid.GetGridDefinition(url);
     var model = new ListViewModel
     {
         Title = WebLocalizationKeys.CLIENT.ToString(),
         gridDef = gridDefinition,
         addUpdateUrl = addUpdateUrl
     };
     model.headerButtons.Add("new");
     return Json(model,JsonRequestBehavior.AllowGet);
 }
 public ActionResult ItemList(ListViewModel viewModel)
 {
     var addUpdateUrl = UrlContext.GetUrlForAction<UserController>(x=>x.AddUpdate(null));
     var deleteMultipleUrl = UrlContext.GetUrlForAction<UserListController>(x => x.DeleteMultiple(null));
     var redirectUrl = SiteConfig.Settings().DCIUrl;
     var url = UrlContext.GetUrlForAction<UserListController>(x => x.Items(null));
     var gridDefinition = _grid.GetGridDefinition(url);
     var model = new UserListViewModel
     {
         addUpdateUrl = addUpdateUrl,
         _Title = WebLocalizationKeys.USERS.ToString(),
         gridDef= gridDefinition,
         deleteMultipleUrl= deleteMultipleUrl,
         RedirectUrl = redirectUrl,
         getLogin = UrlContext.GetUrlForAction<UserController>(x=>x.Login(null))
     };
     model.headerButtons.Add("new");
     model.headerButtons.Add("delete");
     return Json(model,JsonRequestBehavior.AllowGet);
 }