public FileStreamResult Export(string sidx, string sord, string filters)
        {
            var model = new UserLogListViewModel();
            Stream fileStream = new MemoryStream(_excelService.GetExcel(model.UserLogsGrid, "UserLog", sidx, sord, filters));
            HttpContext.Response.AddHeader("content-disposition", "attachment; filename=UserLog.xlsx");

            return new FileStreamResult(fileStream, "application/ms-excel");
        }
        public ActionResult Index()
        {
            var model = new UserLogListViewModel
            {
                HasExportPermission = _rightService.UserHasRight(Common.LoggedInUser.UserName, Rights.UserLogExport, RightOperation.Execute)
            };

            return View(model);
        }
        public ContentResult Search(int page, int rows, string sidx, string sord, string filters, string searchField, string searchOper, string searchString)
        {
            var model = new UserLogListViewModel();
            var result = new ContentResult()
            {
                Content = model.UserLogsGrid.Search(sidx, sord, page, rows, true, filters, searchField, searchOper, searchString),
                ContentType = "application/json"
            };

            return result;
        }