Пример #1
0
 public List <Log> Get(Type type)
 {
     return(dbContext.Logs
            .Where(d => d.LogMessage == type.ToString())
            .OrderByDescending(o => o.TimeStamp)
            .ToList());
 }
        public List <Log> GetLogs(Type type)
        {
            var action = new GetLogsAction(dbContext);

            return(action.Get(type));
        }
Пример #3
0
 public IActionResult Logs(Type type)
 {
     return(View(monitorService.GetLogs(type)));
 }