public ActionResult Select()
        {
            var playlistData = new PlaylistData
            {
                SelectedGenres     = genreRepository.GetAll().ToList(),
                SelectedPerformers = performerRepository.GetAll().ToList(),
            };

            return(View(playlistData));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public ActionResult GetAllPerformersOption()
 {
     return(PartialView("AllPerformersList", performerRepository.GetAll().ToList()));
 }