Пример #1
0
        public async Task SendInsertProduct(Product product)
        {
            var resultProduct = await _service.InsertProduct(product);

            if (resultProduct != null)
            {
                await Clients.All.SendAsync("ReceiveInsertedProduct", resultProduct);
            }
        }
        public bool InsertProduct(CompanyProduct productToInsert)
        {
            ServiceProduct service = new ServiceProduct();

            return(service.InsertProduct(productToInsert));
        }