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); }
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; }
public Album.AlbumObject[] GetPinNameList(string userId) { Album album = new Album(); return album.GetPinNameListByUser(userId); }
public Album.AlbumObject[] GetPinNameList(string userId) { Album album = new Album(); return(album.GetPinNameListByUser(userId)); }