//
        // GET: /Contact/

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

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