From 47874ac0a7a043d3897be255fd9f5f5771bdeced Mon Sep 17 00:00:00 2001 From: thebevrishot Date: Thu, 19 Dec 2019 16:22:01 +0700 Subject: [PATCH] Update readme and refractor --- README.md | 2 +- src/Ztm.WebApi/Controllers/BackgroundServiceErrorController.cs | 2 +- .../BackgroundServiceErrorProblemDetails.cs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) rename src/Ztm.WebApi/{Controllers => Models}/BackgroundServiceErrorProblemDetails.cs (80%) diff --git a/README.md b/README.md index 4937715..43c71b1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This is a service to provide rich API for manage tokens on Zcoin Exodus Protocol ### Requirements -- .NET Core 2.2 +- .NET Core 2.1 ### Build diff --git a/src/Ztm.WebApi/Controllers/BackgroundServiceErrorController.cs b/src/Ztm.WebApi/Controllers/BackgroundServiceErrorController.cs index d9f5a73..2478019 100644 --- a/src/Ztm.WebApi/Controllers/BackgroundServiceErrorController.cs +++ b/src/Ztm.WebApi/Controllers/BackgroundServiceErrorController.cs @@ -40,7 +40,7 @@ public ActionResult BackgroundServiceError() Service = e.Service.FullName, Error = e.Exception.Message, Detail = e.Exception.StackTrace - }).AsEnumerable(); + }).ToList(); details.Errors = errors; } diff --git a/src/Ztm.WebApi/Controllers/BackgroundServiceErrorProblemDetails.cs b/src/Ztm.WebApi/Models/BackgroundServiceErrorProblemDetails.cs similarity index 80% rename from src/Ztm.WebApi/Controllers/BackgroundServiceErrorProblemDetails.cs rename to src/Ztm.WebApi/Models/BackgroundServiceErrorProblemDetails.cs index 6f0b32a..a3fad53 100644 --- a/src/Ztm.WebApi/Controllers/BackgroundServiceErrorProblemDetails.cs +++ b/src/Ztm.WebApi/Models/BackgroundServiceErrorProblemDetails.cs @@ -1,8 +1,7 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; -using Ztm.WebApi.Models; -namespace Ztm.WebApi.Controllers +namespace Ztm.WebApi.Models { public sealed class BackgroundServiceErrorProblemDetails : ProblemDetails {