switched to use the problemdetails class when responding instead of custom errorresponse class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
namespace server.Models
|
||||
{
|
||||
public class ErrorResponse
|
||||
{
|
||||
public string Error { get; set; }
|
||||
|
||||
public ErrorResponse(string error)
|
||||
{
|
||||
Error = error;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user