Beispiel #1
0
        public async static Task <List <Shippers> > GetShippers(IConfiguration _configuration)
        {
            ServiceShippers serviceShippers = new ServiceShippers(_configuration);

            List <Shippers> shippersList = await serviceShippers.GetShippers();

            shippersList.Insert(0, new Shippers {
                CompanyName = ""
            });
            return(shippersList);
        }
Beispiel #2
0
 public ShippersController(IConfiguration configuration)
 {
     _configuration   = configuration;
     _serviceShippers = new ServiceShippers(_configuration);
 }