Пример #1
0
        public LogsViewModel GetData(int page = 1, string ipAddressFilter = "", string userName = "")
        {
            var model = new LogsViewModel();

            var paged = CustomDatabase.GetLogEntries(page, 50, ipAddressFilter, userName);

            model.CurrentPage  = paged.CurrentPage;
            model.TotalPages   = paged.TotalPages;
            model.TotalEntries = paged.TotalItems;
            model.Entries      = paged.Items;

            return(model);
        }