// GET: VirtualMusic public ActionResult Index() { var list = musicService.GetAllMusicAlbum(); var albumsList = list.Select(a => new AlbumVm { Id = a.Id, AlbumName = a.AlbumName, Artist = a.Artist, Label = a.Label, LabelType = (LabelTypeVm)a.LabelType, Stock = a.Stock }).ToList(); return(View(albumsList)); }