Exemple #1
0
        public IActionResult IncludeNewDriver(IncludeDriverViewModel input)
        {
            if (!ModelState.IsValid)
            {
                ViewBag.CarrierId = input.CarrierId;

                return(View());
            }
            _carriersService.IncludeNewDriver(input.CarrierId, input.FullName);

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