Пример #1
0
        public IActionResult IncludeNewVehicle(IncludeVehicleViewModel input)
        {
            if (!ModelState.IsValid)
            {
                ViewBag.CarrierId = input.CarrierId;

                return(View());
            }
            _carriersService.IncludeNewVehicle(input.CarrierId, input.RegNumber);

            return(Redirect($"/Carriers/Edit?id={input.CarrierId}"));
        }