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)); }
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)); }
public ActionResult ServerLog() { //TODO REMOVE MyLoggingServices.TestLog(); return(View()); }