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
+2
View File
@@ -9,5 +9,7 @@ namespace server.Models
public class EpisodeFilter
{
public int? Season { get; set; } = null;
public DateTime? StartDate { get; set; } = null;
public DateTime? EndDate { get; set; } = null;
}
}
-12
View File
@@ -1,12 +0,0 @@
namespace server.Models
{
public class ErrorResponse
{
public string Error { get; set; }
public ErrorResponse(string error)
{
Error = error;
}
}
}