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

            ScadaNode = await _context.ScadaNodes.FirstOrDefaultAsync(m => m.Id == id);

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

            ScadaNode = await _context.ScadaNodes.FindAsync(id);

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

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