public ActionResult BuildPaganationParkingList(ParkingListModel model) { try { return(Json(new { NOP = (new ParkingModel()).BuildPaganationParkingList(model) }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }
public ActionResult FillParkingSearchGrid(ParkingListModel model) { try { return(Json((new ParkingModel()).FillParkingSearchGrid(model), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { error = ex.Message }, JsonRequestBehavior.AllowGet)); } }