Beispiel #1
0
        public async Task <JsonResult> AddVehicle(V data)
        {
            string reference = Helper.GetReference();

            TempData["ID"] = reference;
            await _booking.CreateVehicle(CreateVehicle(data), reference);

            return(Json(new object[] { data.regNumber }, JsonRequestBehavior.AllowGet));
        }