Ejemplo n.º 1
0
        //Get contacts by Id
        public ActionResult GetContactbyId(int id)
        {
            contactsService = new ContactsService();
            cmAPI           = new ContactManagerAPIController(contactsService);

            var contact = cmAPI.Get(id);

            var person     = new Person();
            var contactVNM = ContactViewModel.MapFromEntity(person);

            return(View(contactVNM));
        }