Beispiel #1
0
        public async Task <ActionResult <ShipperAPIModel> > GetShipperById(int id)
        {
            var shipper = await _shipperService.GetShipperById(id);

            var shipperAPIModel = _mapper.Map <Shippers, ShipperAPIModel>(shipper);

            return(Ok(shipperAPIModel));
        }