public bool EditRecipe(Recipe recipe) { try { var recipeVm = new RecipeVM(_dbPath, $"Ændre {recipe.Name}", recipe); return(true); } catch (SqlException) { Console.WriteLine("Couldn't alter recipe..."); } catch (TransactionException) { Console.WriteLine("Couldn't alter recipe..."); } return(false); }
public void OpenCreateRecipeWindow() { var recipeVm = new RecipeVM(_dbPath, "Opret opskrift"); }