public async Task <ActionResult> UpdateApproved(string contactGuid, bool approved) { try { var user = HttpContext.User; var serviceGroupGuid = await UserIdentitInfo.GetUserServiceGroup(user.FindFirstValue(ClaimTypes.NameIdentifier)); await ContactInfo.ContactApprovedUpd(contactGuid, approved, serviceGroupGuid); return(new OkResult()); } catch (Exception e) { return(new StatusCodeResult(500)); } }