public string GetLocation() { List <Context.MasterPool> dbitems = new List <Context.MasterPool>(); dbitems = RepoLocation.FindAll().ToList(); return(new JavaScriptSerializer().Serialize(dbitems)); }
public string Binding() { GridRequestParameters param = GridRequestParameters.Current; List <Context.MasterPool> items = RepoPool.FindAll(param.Skip, param.Take, (param.Sortings != null ? param.Sortings.ToList() : null), param.Filters); List <MasterPool> ListModel = new List <MasterPool>(); foreach (Context.MasterPool item in items) { ListModel.Add(new MasterPool(item)); } int total = RepoPool.Count(param.Filters); return(new JavaScriptSerializer().Serialize(new { total = total, data = ListModel })); }
public ActionResult Dynamic() { ViewBag.LookupCodesSPBU = RepoLookup.FindAll().Where(d => d.LookupCodeCategories.Category == "tms_SPBU").ToList(); ViewBag.LookupCodesKapal = RepoLookup.FindAll().Where(d => d.LookupCodeCategories.Category == "tms_penyebrangan").ToList(); ViewBag.Pool = RepoMasterPool.FindAll(); return(View("Dynamic")); }