public ActionResult DeleteConfirmed(string id) { NewRepository(); Endereco endereco = repository.GetEnderecoByID(id); repository.DeleteEndereco(endereco.Id); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(string id) { NewRepository(); Endereco endereco = repository.GetEnderecoByID(id); repository.DeleteEndereco(endereco.Id); return(RedirectToAction("Index")); }