예제 #1
0
        public ActionResult Remover(int Id)
        {
            MACHAVA15Context C = new MACHAVA15Context();

            C.Congregacao.Remove(C.Congregacao.Find(Id));
            C.SaveChanges();
            return(RedirectToAction("Index", "Congregacao"));
        }
예제 #2
0
        // GET: Congregação
        public ActionResult Index()
        {
            MACHAVA15Context   C     = new MACHAVA15Context();
            List <Congregacao> Lista = C.Congregacao.ToList();

            ViewBag.Listac = Lista;

            return(View());
        }
예제 #3
0
        public IList <Congregacao> ListaDeCongregacao()
        {
            MACHAVA15Context context = new MACHAVA15Context();

            return(context.Congregacao.ToList());
        }