private static void TransferMethodResult(object result, HttpListenerResponse res) { if (result is string s) { res.AsText(s); } //ToDo: check for View else { res.AsJson(result); } }
private static void TransferMethodResult(object result, HttpListenerResponse res) { if (result is string s) { res.AsText(s); } //ToDo: check for View else { res.AsJson(result); } }