public async Task <ActionResult> Edit(string id, int page, FormCollection collection) { IContact updatedContact = await _contactOperations.UpdateContactItemAsync(id, collection["FileAs"], collection["GivenName"], collection["Surname"], collection["JobTitle"], collection["Email"], collection["MobilePhone"], collection["BusinessPhone"]); return(RedirectToAction("Index", new { page, changedid = id })); }
public async Task <ActionResult> Edit(string id, int page, FormCollection collection) { _O365ServiceOperationFailed = false; try { await _contactOperations.UpdateContactItemAsync(id, collection["FileAs"], collection["GivenName"], collection["Surname"], collection["JobTitle"], collection["Email"], collection["MobilePhone"], collection["BusinessPhone"]); } catch (Exception) { _O365ServiceOperationFailed = true; } return(RedirectToAction("Index", new { page, changedid = id })); }