Esempio n. 1
0
 public static BulletinInstance ToEntity2(BulletinInstanceCache obj, BulletinInstance entity)
 {
     entity.Url            = obj.Url;
     entity.Views          = obj.Views;
     entity.ActivationDate = obj.ActivationDate;
     return(entity);
 }
Esempio n. 2
0
        public static BulletinInstanceCache ToCache2(BulletinInstance obj)
        {
            BulletinInstanceCache result = new BulletinInstanceCache();

            result.Url   = obj.Url;
            result.Views = obj.Views;
            return(result);
        }
 public static void Save(BulletinInstanceCache model)
 {
     DCT.Execute(c => c.HubClient.Save <BulletinInstanceCache>((a) => { }, model));
 }