This commit is contained in:
CortexCore
2025-07-04 01:50:54 +08:00
parent fdf263a308
commit 7db625419c
18 changed files with 195 additions and 350 deletions

View File

@@ -0,0 +1,18 @@
using IDIS;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace IDIS_Server_SIM.Extensions;
public static class IDISExtensions
{
public static IActionResult ToActionResult(this IDIS_Response response)
{
return new ContentResult()
{
Content = JsonConvert.SerializeObject(response),
ContentType = "application/json",
StatusCode = 200
};
}
}