Example #1
0
        public async Task <IActionResult> EditContactPhone(Contact contact, string returnUrl)
        {
            int result = 0;

            if (ModelState.IsValid)
            {
                contact.LastModifiedByName = User.Identity.Name;
                result = await _repository.UpdateContactAsync(contact);
            }

            return(LocalRedirect(returnUrl));
        }