// // GET: /Contact/ public ActionResult Index() { _cRepository = new ContactRepository(_uow); return(View(_cRepository.All())); //var context = new BAGA.BAEntities(); //return View(context.Contacts.ToList()); }
public ActionResult Index() { try { return(View(repo.All().ToList())); } catch (Exception ex) { Util.Log(ex); } return(View("Error")); }