public ActionResult Edit(int id)
        {
            Product product = productQueries.Get(id);

            if (product == null)
            {
                return(HttpNotFound());
            }
            var command = new UpdateProductCommand(product);

            command.Companies = companyQueries.GetAll();
            return(View(command));
        }
 public async Task <IActionResult> Get(string id, [FromServices] ProductQueries productQueries)
 {
     return(Ok(await productQueries.Get(Guid.Parse(id))));
 }