public async Task <Order> Update(Order order)
        {
            _context.Entry <Order>(order).State = EntityState.Modified;

            await _context.SaveChangesAsync();

            return(order);
        }
        public async Task <Product> Update(Product product)
        {
            _context.Entry <Product>(product).State = EntityState.Modified;

            await _context.SaveChangesAsync();

            return(product);
        }
        public async Task <Client> Update(Client client)
        {
            _context.Entry <Client>(client).State = EntityState.Modified;

            await _context.SaveChangesAsync();

            return(client);
        }