コード例 #1
0
        public ActionResult GetAllContactDetails()
        {
            ContactRepo ContactRepoObj = new ContactRepo();

            ModelState.Clear();
            return(View(ContactRepoObj.GetAllContacts()));
        }
コード例 #2
0
        public ActionResult UpdateContact(int id)
        {
            ContactRepo ContactRepoObj = new ContactRepo();



            return(View(ContactRepoObj.GetAllContacts().Find(Cont => Cont.Id == id)));
        }
コード例 #3
0
        public ActionResult ShowMessage()
        {
            var list = cp.GetAllContacts();

            return(View(list));
        }