public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            MiningContracts = await _context.MiningContracts.FirstOrDefaultAsync(m => m.ID == id);

            if (MiningContracts == null)
            {
                return(NotFound());
            }
            return(Page());
        }
        public async Task <IActionResult> OnPostAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            MiningContracts = await _context.MiningContracts.FindAsync(id);

            if (MiningContracts != null)
            {
                _context.MiningContracts.Remove(MiningContracts);
                await _context.SaveChangesAsync();
            }

            return(RedirectToPage("./Index"));
        }