Ejemplo n.º 1
0
        public ActionResult EditStation(StationViewModel stationView)
        {
            var mapper     = new MapperConfiguration(cfg => cfg.CreateMap <StationViewModel, StationDTO>()).CreateMapper();
            var stationDto = mapper.Map <StationViewModel, StationDTO>(stationView);

            _stationService.EditStation(stationDto);
            return(RedirectToAction("ShowStations"));
        }