Exemplo n.º 1
0
        public ActionResult ShowContacts(string Name, string Telephone)
        {
            User objUser    = (User)Session["user"];
            var  objContact = new Contact()
            {
                Name      = Name,
                Telephone = Telephone
            };

            objUser.Contacts.Add(objContact);
            _Provider.AddContact(objUser, objContact);
            return(View(objUser));
        }