示例#1
0
 // GET: Actors
 public ActionResult Index()
 {
     return(View(actorsRepository.GetAllActors()));
 }
示例#2
0
        public ActionResult All()
        {
            var actors = ActorsRepository.GetAllActors();

            return(PartialView("Actors", actors));
        }
示例#3
0
        public ActionResult Actors()
        {
            var actors = ActorsRepository.GetAllActors().Where(m => m.Gender == Enums.Gender.male.ToString());

            return(PartialView("Actors", actors));
        }
示例#4
0
 // GET: Movies/Create
 public ActionResult Create()
 {
     ViewBag.Producers = producersRepository.GetAllProducers();
     ViewBag.Actors    = actorsRepository.GetAllActors();
     return(View());
 }