Ejemplo n.º 1
0
        public JsonResult GetAllLogs()
        {
            var temp = MyLoggingServices.GetAllLogs().Select(x => new {
                x.LogID,
                x.LogMessage,
                x.LogType,
                x.Object,
                x.Priority,
                TimeMade = x.TimeMade.ToString("dd/MM/yyyy HH:mm:ss")
            });

            return(Json(temp, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        public JsonResult GetLogs(int startFrom = 0, int howMany = 1)
        {
            //TO DO JSON Serialization
            var temp = MyLoggingServices.GetLogs(startFrom, howMany).Select(x => new {
                x.LogID,
                x.LogMessage,
                x.LogType,
                x.Object,
                x.Priority,
                TimeMade = x.TimeMade.ToString("dd/MM/yyyy HH:mm:ss")
            });

            return(Json(temp, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
 public ActionResult ServerLog()
 {
     //TODO REMOVE
     MyLoggingServices.TestLog();
     return(View());
 }