public IHttpActionResult DeleteUserConnection() { var userId = ((ClaimsIdentity)User?.Identity)?.Claims.Where(x => x.Type == "id") .FirstOrDefault().Value; return(Ok(userId != null && _common.DeleteUserConnection(userId))); }