public void OnGet() { if (CurrentCuisine == CuisineType.None) { Restaurants = _restaurantData.GetAllByUserAndCategory(User.FindFirst(ClaimTypes.NameIdentifier).Value); } else { Restaurants = _restaurantData.GetAllByUserAndCategory(User.FindFirst(ClaimTypes.NameIdentifier).Value, CurrentCuisine); } Cuisines = _restaurantData.GetAllCuisines(); }