Ejemplo n.º 1
0
        public GetAllShipperResponse GetAllShippers()
        {
            GetAllShipperResponse response = new GetAllShipperResponse();

            IEnumerable <Shipper> shippers = _shipperRepository
                                             .FindAll();

            if (shippers != null)
            {
                response.ShipperFound = true;
                response.Shippers     = shippers.ConvertToShipperViews();
            }
            else
            {
                response.ShipperFound = false;
            }


            return(response);
        }