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

This commit is contained in:
StevanFreeborn
2022-06-21 11:50:54 -05:00
parent 920ef40609
commit f22960f0ef
5 changed files with 28 additions and 25 deletions
@@ -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)