public async Task <ActionResult> CreateRecipe(RecipeViewModel recipe) { _recipesPartialViewModel.RecipeTobeAdded.Description = recipe.Description; _recipesPartialViewModel.RecipeTobeAdded.Name = recipe.Name; var recipeModel = ViewModelMapper.MapToModel(_recipesPartialViewModel.RecipeTobeAdded); await Helpers.CookBookExporter.InsertRecipe(recipeModel); return(RedirectToAction("Index", "Recipes")); }