switched to use the problemdetails class when responding instead of custom errorresponse class

This commit is contained in:
StevanFreeborn committed 2022-06-21 11:50:54 -05:00
1 parent 920ef40609
commit f22960f0ef
5 files changed
+28 -25

No files matched your search

@@ -24,6 +24,16 @@ namespace server.Persistence.Repositories
query = query.Where(episode => episode.Season == filter.Season);
}
if (filter?.StartDate != null)
{
query = query.Where(episode => episode.AirDate >= filter.StartDate);
}
if (filter?.EndDate != null)
{
query = query.Where(episode => episode.AirDate <= filter.EndDate);
}
return await query.ToListAsync();
}
catch (Exception e)