public ActionResult <Product> Modify(int id, [FromBody] Product product) { try { return(_provider.Modify(id, product)); } catch (Exception e) { Console.WriteLine("Exception during providing products, maybe DB is not fully initialized yet? " + $"Try again in a few minutes and if it doesn't help, check your docker-compose configuration.\n{e}"); return(null); } }