Beispiel #1
0
        public IActionResult View(int id, Contact contact)
        {
            string NewPropName  = Request.Form["NewPropName"];
            string NewPropValue = Request.Form["NewPropValue"];

            Debug.WriteLine(NewPropName);
            Debug.WriteLine(NewPropValue);
            contactService.AddField(id, NewPropName, NewPropValue);
            return(View(contactService.GetContact(id)));
        }