Пример #1
0
 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"));
     }
 }
Пример #2
0
 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"));
     }
 }