Files
rockfish/util/RfResponse.cs
2018-06-28 23:37:38 +00:00

21 lines
363 B
C#

using System;
using System.Text;
using Microsoft.AspNetCore.Mvc;
namespace rockfishCore.Util
{
public static class RfResponse
{
public static object fail(string msg)
{
return new { error = 1, msg = msg };
}
public static object ok()
{
return new { ok = 1 };
}
}
}