コード例 #1
0
ファイル: Utilities.cs プロジェクト: jvargasc/NorthwindWeb
        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);
        }
コード例 #2
0
 public SuppliersController(IConfiguration configuration)
 {
     _configuration    = configuration;
     _serviceSuppliers = new ServiceSuppliers(_configuration);
 }