public ActionResult BusPars_Destroy([DataSourceRequest] DataSourceRequest request, BusParViewModel par) { if (ModelState.IsValid) { BusParservices.DestroyBusParModel(par); } return(Json(new[] { par }.ToDataSourceResult(request, ModelState))); }
public static List <BusParViewModel> BusParPopulate() { return(BusParservices.GetBusParWith_ID_And_Code()); }
public ActionResult HierarchyBinding_BusPars(int busparID, [DataSourceRequest] DataSourceRequest request) { return(Json(BusParservices.GetBusParByIDDatasource(busparID, request), JsonRequestBehavior.AllowGet)); }
public ActionResult GetAllBusPars([DataSourceRequest] DataSourceRequest request) { return(Json(BusParservices.GetBusParDatasource(request), JsonRequestBehavior.AllowGet)); }
// GET: BusFuncWithBusPar public ActionResult Index() { ViewData["buspars"] = BusParservices.GetBusParWith_ID_And_Code(); ViewData["busfuncs"] = BusFuncservices.GetAllBusFuncsWithID_And_Code(); return(View()); }