public async Task <IActionResult> OnGet() { _logger.LogInformation("Foods Index"); FoodList = await _foodService.FindAll(); return(Page()); }
public List <FoodDTO> Get() { foodService = FoodService.Instance; return(foodService.FindAll()); }
public async Task <IActionResult> OnGet() { _logger.LogInformation("Foods Index"); FoodList = await _foodService.FindAll(); return(Page()); }
public List <FoodDTO> Get() { foodService = FoodService.Instance; return(foodService.FindAll()); }