Пример #1
0
                public ActionResult Member()
		{
			MemberRepository memberRepository = new MemberRepository(new yslDataContext());
			List<Member> allMember = memberRepository.getAllMember();
			ViewBag.members = allMember;
			return View("Member", "~/Views/Shared/_LayoutAdmin.cshtml");
		}
Пример #2
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");
		}