public Stock FindStockFor(RecipeJob recipeJob, RecipeItem recipeItem) { Stock stock = null; _dbConversation.UsingTransaction(()=> { stock = _dbConversation.Query(new FindStockForRecipeItemQuery(recipeItem)); }); return stock; }
public virtual void RemoveRecipeItem(RecipeItem recipeItem) { _recipeItems.Remove(recipeItem); }
public virtual void AddRecipeItem(RecipeItem recipeItem) { recipeItem.ProductionItem = this; _recipeItems.Add(recipeItem); }
public EditRecipeItem(RecipeItem recipeItem) { RecipeItem = recipeItem; }
public SingleRecipeItemViewModel(RecipeItem editRecipeItem) { _editRecipeItem = new EditRecipeItem(editRecipeItem); }
public virtual void AddRecipeItem(RecipeItem recipeItem) { recipeItem.Recipe = this; _recipeItems.Add(recipeItem); }