private bool CheckIfTitleExist(string title) { var dbmGetData = new DBhelperGetData(); var recipe = dbmGetData.GetRecipe(title, "new"); if (recipe == null) { return(false); } return(true); }
public Recipe GetRecipeFromlstBox() { var dbmGetData = new DBhelperGetData(); return(dbmGetData.GetRecipe(lstRecipeTitles.SelectedItem.ToString())); }