//Deletes custom recipes from RecipeCalendar database public async Task <IActionResult> DeleteCustomRecipe(int customRecipeId, int numDaysFromToday) { var userId = User.FindFirstValue(ClaimTypes.NameIdentifier); var recipeIsDelete = await _repositoryClient.DeleteCustomRecipeFromMealPlan(customRecipeId, userId, numDaysFromToday); if (recipeIsDelete) { return(RedirectToAction("MealDeleteCalendar", "MealPlanning")); } else { return(RedirectToAction("Error", "Home")); } }