Esempio n. 1
0
                public ActionResult Artist()
		{
			ArtistRepository artistRepository = new ArtistRepository(new yslDataContext());
			MemberRepository memberRepository = new MemberRepository(new yslDataContext());
			List<Artist> allArtist = artistRepository.getAllArtist();
			List<Member> allMember = memberRepository.getAllMember();
			ViewBag.artist = allArtist;
			ViewBag.members =  allMember;
			return View("Artist", "~/Views/Shared/_LayoutAdmin.cshtml");
		}
Esempio n. 2
0
                public ActionResult Events()
		{
			EventRepository eventRepository = new EventRepository(new yslDataContext());
			List<EventData> recentEventsWithData = eventRepository.getRecentEventsWithData();
			ArtistRepository artistRepository = new ArtistRepository(new yslDataContext());
			List<Artist> allArtist = artistRepository.getAllArtist();
			ViewBag.artists =  allArtist.ToList<Artist>();
			ViewBag.events = recentEventsWithData;
			return View("Events", "~/Views/Shared/_LayoutAdmin.cshtml");
		}
Esempio n. 3
0
                public ActionResult Music()
		{
			IAudioAlbumRepository audioAlbumRepository = new AudioAlbumRepository(new yslDataContext());
			ArtistRepository artistRepository = new ArtistRepository(new yslDataContext());
			List<Artist> allArtist = artistRepository.getAllArtist();
			List<AudioAlbumData> audioAlbumsWithCover = audioAlbumRepository.getAudioAlbumsWithCover(0, 100);
			ViewBag.audios = audioAlbumsWithCover;
			ViewBag.artist = allArtist;
			return View("Music", "~/Views/Shared/_LayoutAdmin.cshtml");
		}