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

            if (ModelState.IsValid)
            {
                result = await _repository.DeleteContactAsync(contact);
            }
            return(LocalRedirect(returnUrl));
        }