public async Task <List <BrandsModel> > GetBrands() { var productBsn = new ProductBsn(); List <BrandsModel> brands = productBsn.GetListBrand(); return(brands); }
public async Task <ProductModel> Create() { ProductBsn productBsn = new ProductBsn(); ProductModel productModel = new ProductModel(); productModel.listCategory = await productBsn.GetListCategory(); productModel.listBrand = productBsn.GetListBrand(); return(productModel); }