public async static Task <List <Suppliers> > GetSuppliers(IConfiguration _configuration) { ServiceSuppliers serviceSuppliers = new ServiceSuppliers(_configuration); List <Suppliers> suppliersList = await serviceSuppliers.GetSuppliers(); suppliersList.Insert(0, new Suppliers { CompanyName = "" }); return(suppliersList); }
public SuppliersController(IConfiguration configuration) { _configuration = configuration; _serviceSuppliers = new ServiceSuppliers(_configuration); }