Пример #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());
 }