public async Task <IActionResult> FindReportedRecipes(PendingRecipeViewModel viewModel) { var results = await _reportRecipeService.FindReportedRecipesAsync(); return(View(new PendingRecipeViewModel { Results = results })); }
public async Task <IActionResult> Index(PendingRecipeViewModel viewModel) { var results = await _pendingRecipeService.FindPendingRecipes(); return(View(new PendingRecipeViewModel { Results = results })); }