Пример #1
0
        public ActionResult Checkin([Bind(Include = "Id, InTime, OutTime, Checkedin")] CheckInViewModel newVehicle)
        {
            if (ModelState.IsValid && Request.IsAjaxRequest())
            {
                Garage.CheckInVehicle(newVehicle);

                return(Json(new { type = true, message = "Vehicle Checked in!" }));
            }

            return(RedirectToAction("Index"));
        }