public ActionResult RSetsNumber() { try { int num = RenderingSets.Count(); return(Json(new { success = true, count = num }, "application/json")); } catch (Exception ex) { Log.Write(TraceEventType.Stop, "Home Controller, RSetNumber | Exception {0}", ex); return(Json(new { success = false, message = ex.Message }, "text/json")); } }
public ActionResult ServerInfo() { try { DateTime access = LogEntry.DateFromString(SystemLog.GetLastAccess()); int num = RenderingSets.Count(); return(Json(new { success = true, access = access.ToString(), rsetnum = num }, "application/json")); } catch (Exception ex) { Log.Write(TraceEventType.Stop, "Home Controller, ServerInfo | Exception {0}", ex); return(Json(new { success = false, message = ex.Message }, "text/json")); } }