public JsonResult Select_HoldVehicle(string DealerCode) { string data = ""; bool result = false; data = HoldVehicleMethods.Get_VehiclesForHold(DealerCode); if (!string.IsNullOrEmpty(data)) { result = true; } return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet)); }
public JsonResult Update_Vehicle(HoldVehicleVM objects) { bool result = false; string msg = "Failed to save record.."; result = HoldVehicleMethods.Update_Vehicle(objects); if (result) { msg = "Successfully Added"; } return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet)); }