コード例 #1
0
        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);
        }
コード例 #2
0
        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>