Ejemplo n.º 1
0
        public IActionResult OperatingCostDetail(OperatingViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            _unitOfWork.SaveOperatingCost(model);
            return(View("OperatingCostList", _unitOfWork.GetCarByIdWithLists(model.CarId)));
        }