public IActionResult Index()
        {
            var viewModel = new MessageGenerationViewModel();

            viewModel.GridModel = new GridCrudModel
            {
                ControllerName = "MessageGeneration",
                Key            = "FileId",
                LoadAction     = nameof(Load),
                //ImportAction = nameof(Import)
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> Load(MessageGenerationViewModel request)
        {
            if (request.BeginDate == DateTime.MinValue)
            {
                request = new MessageGenerationViewModel
                {
                    BeginDate = DateTime.Now,
                    EndDate   = DateTime.Now
                };
            }

            var response = await Mediator.Send(new GetMfuFilesRequest { BeginDate = request.BeginDate, EndDate = request.EndDate });

            if (response.IsFailed())
            {
                return(BadRequest(response.GetMessagesAsString()));
            }

            return(Json(response.Data));
        }