示例#1
0
        public async Task <ActionResult> Delete(string id, FormCollection collection)
        {
            _O365ServiceOperationFailed = false;

            try
            {
                await _contactOperations.DeleteContactAsync(id);
            }
            catch (Exception)
            {
                _O365ServiceOperationFailed = true;
            }
            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Delete(string id, FormCollection collection)
        {
            bool success = await _contactOperations.DeleteContactAsync(id);

            return(RedirectToAction("Index"));
        }