public async Task <IActionResult> GetAllShips() { var ships = await shipService.GetAllShips(); var shipsDto = ShipDto.ToListShipDto(ships); return(Ok(new ShipDto { Ships = shipsDto })); }
public async Task <IActionResult> GetAllShips() { var ships = await shipService.GetAllShips(); var shipsDto = ShipDto.ToListShipDto(ships); return(Ok(new ShipDto { Ships = shipsDto })); }