예제 #1
0
        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));
        }