public async Task <IActionResult> Edit(int id, [Bind("NetMovelId,Limite,PrecoNetMovel,Nome,Notas")] NetMovel netMovel)
        {
            if (id != netMovel.NetMovelId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(netMovel);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!NetMovelExists(netMovel.NetMovelId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                ViewBag.Mensagem = "Net móvel adicionado com sucesso";
                return(View("Sucesso"));
            }
            return(View(netMovel));
        }
        public async Task <IActionResult> Create([Bind("NetMovelId,Limite,PrecoNetMovel,Nome,Notas")] NetMovel netMovel)
        {
            if (ModelState.IsValid)
            {
                _context.Add(netMovel);
                await _context.SaveChangesAsync();

                ViewBag.Mensagem = "Net móvel adicionada com sucesso";
                return(View("Sucesso"));
            }
            return(View(netMovel));
        }