예제 #1
0
        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));
        }
예제 #2
0
        public ActionResult Read()
        {
            DataEntity             context = new DataEntity();
            EntityGeneric <Emails> data    = new EntityGeneric <Emails>(context);

            ViewBag.listaEmails = data.buscar();
            return(View());
        }