예제 #1
0
        public IHttpActionResult GetShipment(int id)
        {
            Shipment dbShipment = _shipmentRepository.GetById(id);

            if (dbShipment == null)
            {
                return(NotFound());
            }

            return(Ok(Mapper.Map <ShipmentsModel>(dbShipment)));
        }
예제 #2
0
 public IShipmentDto GetById(long id)
 {
     return(_shipmentRepository.GetById(id));
 }