public FluentRecipeOperations(IFluentRecipe parent) { _isnew = false; _parent = parent; MasterRecipe rec = _parent.GetRecipe(); }
public FluentRecipeOperations(IFluentRecipe parent, string s) { _isnew = false; _parent = parent; MasterRecipe rec = _parent.GetRecipe(); // _operation =_parent.GetRecipe().RecOperations.FirstOrDefault(g=>g.OperationName==s); //_operation = contx.MasterRecipes.FirstOrDefault(g => g.BrandName == rec.BrandName).RecOperations.FirstOrDefault(e => e.OperationName == s); _operation = rec.RecOperations.FirstOrDefault(g => g.OperationName == s); //if (_operation == null) //{ // //_operation = new RecUnitOperation(); // AddOperation(s); //} }