public async Task <ActionResult> Create(Vendedor vendedor)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(RedirectToAction(nameof(Create)));
                }

                await _vendedorService.CreateAsync(vendedor);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }