public void InsertInstructionForRecipe(InstructionsBL instruction) { var instructionForRecipeDAL = new Instructions() { RecipeID = instruction.RecipeID, InstructionText = instruction.InstructionText }; instructionsRepositoryG.Create(instructionForRecipeDAL); }
public void Update(InstructionsBL instruction) { var instructionDAL = new Instructions() { InstructionID = instruction.InstructionID, InstructionText = instruction.InstructionText, RecipeID = instruction.RecipeID }; instructionsRepositoryG.Update(instructionDAL); }