Exemplo n.º 1
0
        public GetShipperResponse GetShipper(GetShipperRequest request)
        {
            GetShipperResponse response = new GetShipperResponse();

            Shipper shipper = _shipperRepository
                              .FindBy(request.ShipperID);

            if (shipper != null)
            {
                response.ShipperFound = true;
                response.Shipper      = shipper.ConvertToShipperView();
            }
            else
            {
                response.ShipperFound = false;
            }


            return(response);
        }