// GET: Actors public ActionResult Index() { return(View(actorsRepository.GetAllActors())); }
public ActionResult All() { var actors = ActorsRepository.GetAllActors(); return(PartialView("Actors", actors)); }
public ActionResult Actors() { var actors = ActorsRepository.GetAllActors().Where(m => m.Gender == Enums.Gender.male.ToString()); return(PartialView("Actors", actors)); }
// GET: Movies/Create public ActionResult Create() { ViewBag.Producers = producersRepository.GetAllProducers(); ViewBag.Actors = actorsRepository.GetAllActors(); return(View()); }