public LinkedList <ContainerForImagesAndUsers> create()
        {
            int imgIndex = 0;
            LinkedList <ContainerForImagesAndUsers> imagesGrid = new LinkedList <ContainerForImagesAndUsers>();

            for (int i = 0; i < (Images.Count / Columns); ++i)
            {
                ContainerForImagesAndUsers tempContainer = new ContainerForImagesAndUsers();

                for (int j = 0; j < Columns; ++j)
                {
                    Image img = new Image();
                    img = Images.ElementAt(imgIndex);


                    long   albumid = img.AlbumID;
                    string userid  = ImageShareDatabase.Albums.Where(a => a.AlbumID == albumid).FirstOrDefault().ApplicationUserID;

                    ApplicationUser user = UsersDatabase.Users.Where(u => u.Id == userid).FirstOrDefault();

                    tempContainer.imagesAndUsers.AddLast(new ImagesAndUsers {
                        image = img, user = user
                    });


                    ++imgIndex;
                }

                imagesGrid.AddLast(tempContainer);
            }

            ContainerForImagesAndUsers data = new ContainerForImagesAndUsers();

            for (int i = imgIndex; i < Images.Count; ++i)
            {
                Image img = new Image();
                img = Images.ElementAt(i);


                long   albumid = img.AlbumID;
                string userid  = ImageShareDatabase.Albums.Where(a => a.AlbumID == albumid).FirstOrDefault().ApplicationUserID;

                ApplicationUser user = UsersDatabase.Users.Where(u => u.Id == userid).FirstOrDefault();

                data.imagesAndUsers.AddLast(new ImagesAndUsers {
                    image = img, user = user
                });
            }

            imagesGrid.AddLast(data);

            return(imagesGrid);
        }
        public LinkedList<ContainerForImagesAndUsers> create()
        {
            int imgIndex = 0;
            LinkedList<ContainerForImagesAndUsers> imagesGrid = new LinkedList<ContainerForImagesAndUsers>();

            for (int i = 0; i < (Images.Count / Columns); ++i)
            {
                ContainerForImagesAndUsers tempContainer = new ContainerForImagesAndUsers();

                for (int j = 0; j < Columns; ++j)
                {
                    Image img = new Image();
                    img = Images.ElementAt(imgIndex);

                        long albumid = img.AlbumID;
                        string userid = ImageShareDatabase.Albums.Where(a => a.AlbumID == albumid).FirstOrDefault().ApplicationUserID;

                        ApplicationUser user = UsersDatabase.Users.Where(u => u.Id == userid).FirstOrDefault();

                        tempContainer.imagesAndUsers.AddLast(new ImagesAndUsers { image = img, user = user });

                    ++imgIndex;
                }

                imagesGrid.AddLast(tempContainer);
            }

            ContainerForImagesAndUsers data = new ContainerForImagesAndUsers();

            for (int i = imgIndex; i < Images.Count; ++i)
            {
                Image img = new Image();
                img = Images.ElementAt(i);

                    long albumid = img.AlbumID;
                    string userid = ImageShareDatabase.Albums.Where(a => a.AlbumID == albumid).FirstOrDefault().ApplicationUserID;

                    ApplicationUser user = UsersDatabase.Users.Where(u => u.Id == userid).FirstOrDefault();

                    data.imagesAndUsers.AddLast(new ImagesAndUsers { image = img, user = user });

            }

            imagesGrid.AddLast(data);

            return imagesGrid;
        }