public ActionResult Select() { var playlistData = new PlaylistData { SelectedGenres = genreRepository.GetAll().ToList(), SelectedPerformers = performerRepository.GetAll().ToList(), }; return(View(playlistData)); }
public IActionResult List() { //fetching all records from Performer var model = _repo.GetAll().Select(p => new PerformersListVM { PerformerID = p.ID, PerformerName = p.Name, ManagerName = p.Manager.Name, Fee = p.Fee, Contact = p.Manager.PhoneNumber }).ToList(); //ordered list int broj = 0; foreach (PerformersListVM x in model) { x.Number = ++broj; } return(View(model)); }
public ActionResult GetAllPerformersOption() { return(PartialView("AllPerformersList", performerRepository.GetAll().ToList())); }