Transforming own type into ProblemDetails - C#