Beispiel #1
0
        public async Task <List <BrandsModel> > GetBrands()
        {
            var productBsn            = new ProductBsn();
            List <BrandsModel> brands = productBsn.GetListBrand();

            return(brands);
        }
Beispiel #2
0
        public async Task <ProductModel> Create()
        {
            ProductBsn   productBsn   = new ProductBsn();
            ProductModel productModel = new ProductModel();

            productModel.listCategory = await productBsn.GetListCategory();

            productModel.listBrand = productBsn.GetListBrand();
            return(productModel);
        }