예제 #1
0
        public async Task <IActionResult> AddVehicle(AddItemViewModel model)
        {
            if (this.ModelState.IsValid)
            {
                await _appointmentRepository.AddItemToAppointmentAsync(model, this.User.Identity.Name);

                return(this.RedirectToAction("Create"));
            }

            return(View(model));
        }