yikes,
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user