public async Task <IActionResult> IndexAsync() { Person who = await _auth.GetCurrentPersonAsync(User); return(View(new IndexVM { Foods = _calories.GetFoods(), Meals = await _calories.GetTodaysMealsAsync(who), Who = who, })); }
public ActionResult Index() { return(View(_calories.GetFoods())); }