Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }