Files
Vanadium-2023-2025-Leak-Server/Utils/Utils.cs
T
skidfire fe3468c65d yikes,
2026-09-06 19:59:27 -04:00

25 lines
620 B
C#

using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Vanadium.Utils
{
public class Utils
{
public static ContentResult ErrorRoom(string errorId, string error)
{
return new ContentResult()
{
Content = JsonConvert.SerializeObject(new
{
Success = false,
Value = (string?)null,
ErrorId = errorId,
Error = error,
}),
ContentType = "application/json",
StatusCode = 200
};
}
}
}