public async Task <ActionResult> GetPageOptions(int blockLength)
        {
            var model = new ReprocessingOptionsModel();

            model.WalletSearchBlockLength = blockLength;
            return(await Task.FromResult(View("ReprocessingOptionsModal", model)));
        }
        public async Task <ActionResult> UpdatePageOptions(ReprocessingOptionsModel model)
        {
            if (!ModelState.IsValid)
            {
                return(CloseModalError("Invalid input."));
            }

            if (model.WalletSearchBlockLength < 0)
            {
                return(CloseModalError("Invalid input. Must be greater than 0."));
            }

            return(await Task.FromResult(CloseModal(new { Success = true, WalletBlockLength = model.WalletSearchBlockLength })));
        }