public IActionResult Index(string name) { if (name == null) { return(View("IndexWithName")); } else { var fox = foxService.FindFox(name); return(View("Index", fox)); } }
public IActionResult NutritionStore(string name) { var fox = service.FindFox(name); return(View(fox)); }