public async Task <SentRecipe> SaveRecipePrepare(HistoryModel historyModel) { Recipe recipe = await _repo.AddNewPrepare(historyModel.recipeId, historyModel.sub); if (recipe == null) { return(null); } return(SentRecipe.GetFromRecipe(recipe)); }
public async Task <SentRecipe> SaveRecipePrepare(HistoryModel historyModel) { Recipe recipe = await _repo.AddNewPrepare(historyModel.recipeId, historyModel.sub); if (recipe == null) { return(null); } return(SentRecipe.GetFromRecipe(recipe)); }