示例#1
0
        // GET: Artist
        /// <summary>
        /// 選択済みアーティスト一覧の表示
        /// </summary>
        /// <returns>一覧画面の表示</returns>
        public ActionResult Index()
        {
            var context = new ArtistContext();
            var data    = context.GetAll();

            return(View(data));
        }
 public async Task<IEnumerable<ArtistDTO>> GetArtists()
 {
     List<ArtistDTO> result = new List<ArtistDTO>();
     foreach(var artist in await _artistContext.GetAll())
     {
         result.Add(dtoFrom(artist));
     }
     return result;
 }