public IEnumerable <OverviewJourneyPreviewViewModel> GetOverviewJourneys([FromQuery] int year = 0) { // Year 0 represents all years var userId = GetUserId(User); return(_overviewRepository.GetJourneyOverviews(userId, year)); }
public void TestGetJourneyOverviewsEmpty() { Assert.IsEmpty(_repository.GetJourneyOverviews("1234", 0)); }