//
        // GET: /Contact/

        public ActionResult Index()
        {
            _cRepository = new ContactRepository(_uow);
            return(View(_cRepository.All()));

            //var context = new BAGA.BAEntities();
            //return View(context.Contacts.ToList());
        }
Ejemplo n.º 2
0
 public ActionResult Index()
 {
     try
     {
         return(View(repo.All().ToList()));
     }
     catch (Exception ex)
     {
         Util.Log(ex);
     }
     return(View("Error"));
 }