public ActionResult GetList(JqGridRequest request, UserMenuSearch model) { string filterExpression = String.Empty; int totalRecords = 0; dynamic list = null; list = _invUserMenuService.GetUserMenuSearchList(model.UserName); totalRecords = list == null ? 0 : list.Count; JqGridResponse response = new JqGridResponse() { TotalPagesCount = (int)Math.Ceiling((float)totalRecords / (float)request.RecordsCount), PageIndex = request.PageIndex, TotalRecordsCount = totalRecords }; foreach (var d in list) { response.Records.Add(new JqGridRecord(Convert.ToString(d.Id), new List <object>() { d.Id, d.UserName, //d.EmpFullName, //d.Designation, //d.Department, "Delete" })); } return(new JqGridJsonResult() { Data = response }); }
public ViewResult Index(UserMenuSearch model) { if (model == null) { model = new UserMenuSearch(); } return(View(model)); }
public ActionResult BackToList() { var model = new UserMenuSearch(); return(View("_Index", model)); }