Example #1
0
 public ActionResult SearchTrack(int id,string Name)
 {
     var model = new PlaylistSearchTrackViewModel()
     {
         FormTitle = Name,
         PlayListId = id,
         TrackFound = new List<TracksListViewModel>()
     };
     return View(model);
 }
Example #2
0
        public ActionResult GetTrackList(PlaylistSearchTrackViewModel model)
        {
            var tracks = _playListService.GetTracksFrom(model);

            return PartialView("Shared/_TrackListEdit", tracks);
        }
Example #3
0
 public IEnumerable<TracksListViewModel> GetTracksFrom(PlaylistSearchTrackViewModel request)
 {
     _logger.InfoFormat("Se ejecuto el Metodo {0}", MethodBase.GetCurrentMethod().Name);
     var tracklist = _trackRepository.Get().Where(x=>x.Name.Contains(request.TrackName)).ToList();
     return tracklist.Select(track => new TracksListViewModel(track, request.PlayListId)).ToList();
 }