This commit is contained in:
skidfire
2026-09-06 19:59:27 -04:00
parent 55d8e11a5d
commit fe3468c65d
247 changed files with 338183 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
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
};
}
}
}