public List <LogStruct> getLogs(string username, string pass) { DbSelect select = new DbSelect(Configuration, _hostingEnvironment); List <LogStruct> logList = new List <LogStruct>(); logList = select.getLogs(username, pass); return(logList); }
public ContentResult getLogsPretty(string username, string pass) { DbSelect select = new DbSelect(Configuration, _hostingEnvironment); List <LogStruct> logList = new List <LogStruct>(); logList = select.getLogs(username, pass); logList.Reverse(); string html = ""; foreach (var item in logList) { html += @$ "<tr> <td>{item.ipAdress}</td>