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); }
public ShippersController(IConfiguration configuration) { _configuration = configuration; _serviceShippers = new ServiceShippers(_configuration); }