public async Task <IActionResult> Create([Bind("Id,Name")] Departamento departamento)
        {
            if (ModelState.IsValid)
            {
                _context.Add(departamento);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(departamento));
        }
 public async Task InsertAsync(Vendedor obj)
 {
     _context.Add(obj);
     await _context.SaveChangesAsync();
 }