public ActionResult AddSave(PhoneContact phoneContact)
        {
            _jsonPhoneDictionary.AddContact(phoneContact);

            return(RedirectToAction("Index"));
        }
Example #2
0
        public async Task <ActionResult> AddSave(PhoneContact phoneContact)
        {
            await _sqlPhoneDictionary.AddContact(phoneContact);

            return(RedirectToAction("Index"));
        }