public Set AddOrUpdate(Photoset set)
        {
            var v = db.Sets.FirstOrDefault(r => r.UserID == Flickr.User.UserId && r.SetsID == set.PhotosetId);

            if (v == null)
            {
                db.Sets.Add(new Set() { UserID = Flickr.User.UserId, SetsID = set.PhotosetId, Tittle = set.Title });
            }
            else
            {
                if (v.Tittle != set.Title)
                    v.Tittle = set.Title;
            }

            db.SaveChanges();

            return v;
        }
 internal static string UrlFormat(Photoset p, string size, string extension)
 {
     return UrlFormat(p.Farm, p.Server, p.PrimaryPhotoId, p.Secret, size, extension);
 }