public ActionResult Status(int id) { using (UsuariosConnection connection = new UsuariosConnection()) { connection.Status(id); return(RedirectToAction("Index")); } }
// GET: Admin/Usuario public ActionResult Index() { using (UsuariosConnection usuarios = new UsuariosConnection()) { ViewBag.Status = Enum.GetValues(typeof(Status)); ViewBag.PessoasFisicas = usuarios.ReadAll_PessoasFisicas(); ViewBag.PessoasJuridicas = usuarios.ReadAll_PessoasJuridica(); return(View()); } }