Beispiel #1
0
        public IActionResult DeleteNutrientIntake(int articleId, int nutrientId)
        {
            var nutrientIntake = new NutrientIntake
            {
                Nutrient = _nutrientLogic.GetBy(nutrientId),
            };

            _articleLogic.DeleteNutrientIntake(AuthController.GetAuthUserId(User), articleId, nutrientIntake);

            return(RedirectToAction("List", "Article"));
        }