public ActionResult ViewComments(RecipeViewModel recipe) { if (recipe.NewComment != null && recipe.NewComment != "") { var id = commentService.CreateNewComment(recipe.NewComment); commentService.InsertCommentForRecipe(recipe.RecipeID, id); } ratingService.UpdateRatingByRatingID(recipe.RatingID, recipe.NewRating); return(RedirectToAction("View", "Recipe", new { id = recipe.RecipeID })); }