コード例 #1
0
        public AlbumModel GetAlbumById(int id)
        {
            var album = _albumManager.Find(id);

            return(new AlbumModel()
            {
                Id = album.Id,
                SingerId = album.Singer.Id,
                Name = album.Name,
                SingerName = album.Singer.Name,
                CreationTime = album.CreationTime,
                LastModificationTime = album.LastModificationTime
            });
        }