public IFluentRecipe AddRecipe(string s) { //FluentRecipe recactions = new FluentRecipe(); _recipe = contx.MasterRecipes.FirstOrDefault(g => g.BrandName == s); _isnew = false; if (_recipe == null) { _isnew = true; _recipe = new MasterRecipe(); _recipe.BrandDescription = "default"; _recipe.BrandName = s; _recipe.Ingredients = new List<Ingredient>(); _recipe.RecOperations = new List<RecUnitOperation>(); _recipe.QaulityTargets = "default"; _recipe.Plants = new List<Plant>(); } return this; }
public IFluentRecipe ForRecipe(string s) { _recipe = contx.MasterRecipes.FirstOrDefault(g => g.BrandName == s); return this; }