public ActionResult GetSelectedTable(int id) { ReservationVIewModel model = ReservationRepo.GetByTable(id); return(Json(new { success = model.id == 0 ? false : true, entity = model }, JsonRequestBehavior.AllowGet)); }
public ActionResult GetByTable(int id) { return(PartialView("_GetByTable", ReservationRepo.GetByTable(id))); }