public async Task<ActionResult<Product>> DeleteProduct(int id)
        {
            try
            {
                var product = await _repository.FindById<Product>(id);

                if (product == null)
                {
                    return NotFound();
                }

                await _repository.DeleteAsync<Product>(product);

                return product;
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }