Пример #1
0
        protected bool UserHasAlbums()
        {
            var claimsIdentity = HttpContext.Current.User.Identity as ClaimsIdentity;

            if (claimsIdentity != null)
            {
                var userIdClaim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier);
                if (userIdClaim != null)
                {
                    var   userIdValue = userIdClaim.Value;
                    Album album       = new Album();
                    if (album.GetPinNameListByUser(userIdValue).Length > 0)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
Пример #2
0
 protected bool UserHasAlbums()
 {
     var claimsIdentity = HttpContext.Current.User.Identity as ClaimsIdentity;
     if (claimsIdentity != null)
     {
         var userIdClaim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier);
         if (userIdClaim != null)
         {
             var userIdValue = userIdClaim.Value;
             Album album = new Album();
             if (album.GetPinNameListByUser(userIdValue).Length > 0)
             {
                 return true;
             }
         }
     }
     return false;
 }
Пример #3
0
 public Album.AlbumObject[] GetPinNameList(string userId)
 {
     Album album = new Album();
     return album.GetPinNameListByUser(userId);
 }
Пример #4
0
        public Album.AlbumObject[] GetPinNameList(string userId)
        {
            Album album = new Album();

            return(album.GetPinNameListByUser(userId));
        }