示例#1
0
        public static LastFmInfo Create(Artist artist, string name, string bio)
        {
            var lastFmInfo = new LastFmInfo()
                                 {
                                     AssociatedArtist = artist
                                 };

            lastFmInfo.Update(name, bio);
            return lastFmInfo;
        }
示例#2
0
        public static LastFmInfo Create(Artist artist, string name, string bio)
        {
            var lastFmInfo = new LastFmInfo()
            {
                AssociatedArtist = artist
            };

            lastFmInfo.Update(name, bio);
            return(lastFmInfo);
        }
示例#3
0
 public void UpdateLastFmInfo(string name, string bio)
 {
     if (LastFmInfo == null)
     {
         LastFmInfo = LastFmInfo.Create(this, name, bio);
     }
     else
     {
         LastFmInfo.Update(name, bio);
     }
 }