public IActionResult UpdateTransport(int id) { Transport t = TransportService.GetTransport(id); ViewData["Id"] = id; return(View(t)); }
public IActionResult GetTransport(int?id) { var transportDTO = _transportService.GetTransport(id); if (transportDTO == null) { return(NotFound()); } var transport = _mapper.Map <TransportViewModel>(transportDTO); return(Ok(transport)); }