Esempio n. 1
0
        public ActionResult Details(int Id)
        {
            var ContactRecord   = _contactLogic.getContact(Id);
            var contactVHandler = ContactTranslator.GetContactView(ContactRecord);

            return(View(contactVHandler));
        }
Esempio n. 2
0
        public ActionResult Add(AddContactViewHandler objContact)
        {
            var newContact = ContactTranslator.GetContactModel(objContact);

            _contactLogic.AddContact(newContact);
            return(RedirectToAction("Details", new { id = newContact.ID }));
        }