Exemple #1
0
        public async Task <int> AddProductAsync(ProductPost dto)
        {
            var im = new Product()
            {
                CategoryID  = dto.CategoryID,
                Description = dto.Description,
                Price       = dto.Price,
                Stock       = dto.Stock
            };
            var om = await _dal.AddProductAsync(im);

            return(om);
        }