public UserClaimsInfoModel GetUserModelFromCurrentClaimsIdentity() { UserClaimsInfoModel userClaimsInfoModel = null; ClaimsPrincipal principal = RequestContext.Principal as ClaimsPrincipal; if (principal != null && principal.Identity.IsAuthenticated) { userClaimsInfoModel = _identityService.CreateUserClaimsInfoModelFromClaimsIdentity((ClaimsIdentity)principal.Identity); } return(userClaimsInfoModel); }