public ActionResult Edit(string ID) { DataEntity context = new DataEntity(); EntityGeneric <Emails> data = new EntityGeneric <Emails>(context); Emails email = data.buscar(Convert.ToInt32(ID)); return(View(email)); }
public ActionResult Read() { DataEntity context = new DataEntity(); EntityGeneric <Emails> data = new EntityGeneric <Emails>(context); ViewBag.listaEmails = data.buscar(); return(View()); }