public IActionResult UpdateEmpresa()
        {
            Empresa empresa = null;

            using (EmpresaData data = new EmpresaData())
                empresa = data.GetEmpresa(User.Identity.Name);

            using (EnderecoData data = new EnderecoData())
                return(View(data.Read(empresa.EnderecoId)));
        }
 public IActionResult Update(int id)
 {
     id = 3;
     using (EnderecoData data = new EnderecoData())
         return(View(data.Read(id)));
 }
 // [HttpGet]
 public IActionResult Index(Cliente cliente)
 {
     using (EnderecoData data = new EnderecoData())
         return(View(data.Read(cliente.Endereco.Id)));
 }