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)); }
public IActionResult Logs(Type type) { return(View(monitorService.GetLogs(type))); }