Esempio n. 1
0
        public bool CreateProduct([FromBody] Product product)
        {
            List <Product> productList = new List <Product>();

            //for (int i = 0; i < 5000; i++)
            //{
            //    productList.Add(new Product
            //    {
            //        ProductName = "vivo x2",
            //        Brand = "brand vivo",
            //        ProductPrice = 1000,
            //        CreateDate = DateTime.Now,
            //        CreateUserId =100,
            //        UpdateDate = DateTime.Now,
            //        UpdateUserId = 100,
            //        IsDeleted = false
            //    });
            //}

            //iProductBusiness.CreateEntityList(productList);
            return(iProductBusiness.CreateEntity(product));
        }