Blog.Tools.ApplicationSetup.Program.LoadAlbums C# (CSharp) Method

LoadAlbums() private static method

private static LoadAlbums ( ) : void
return void
		private static void LoadAlbums()
		{
			foreach (var u in _users)
			{
				AlbumRepository.Add(new Album
				{
					AlbumName = "Miscellaneous",
					UserId = u.UserId,
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now,
					IsUserDefault = false
				});

				AlbumRepository.Add(new Album
				{
					AlbumName = "Stuff",
					UserId = u.UserId,
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now,
					IsUserDefault = true
				});

				AlbumRepository.Add(new Album
				{
					AlbumName = "Profile",
					UserId = u.UserId,
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now,
					IsUserDefault = false
				});

				AlbumRepository.Add(new Album
				{
					AlbumName = "Background",
					UserId = u.UserId,
					CreatedBy = u.UserId,
					CreatedDate = DateTime.Now,
					ModifiedBy = u.UserId,
					ModifiedDate = DateTime.Now,
					IsUserDefault = false
				});
			}

			AddConsoleMessage("Successfully added albums...");
		}