Esempio n. 1
0
        public ActionResult Edit(Guid id, TruckForm truckForm)
        {
            if (!ModelState.IsValid)
            {
                return(View(truckForm));
            }

            _truckService.Edit(truckForm.ToTruck());

            return(RedirectToAction("Index", new TruckListFiltersModel().GetRouteValues()).WithSuccess("Camion Editado"));
        }