コード例 #1
0
        public virtual void UpdateGoogleProductRecord(ActivityStyle ActivityStyle)
        {
            if (ActivityStyle == null)
            {
                throw new ArgumentNullException("ActivityStyle");
            }

            repository.Update(ActivityStyle);
        }
コード例 #2
0
 public ActivityStyle FormData(ActivityStyle info)
 {
     info.Title        = this.Title;
     info.DeliveryTime = this.DeliveryTime;
     info.Address      = this.Address;
     info.Imgurl       = this.Imgurl;
     info.Content      = this.Content;
     info.IsTop        = this.IsTop;
     return(info);
 }
コード例 #3
0
 public ActivityStyleModel ToModel(ActivityStyle info)
 {
     this.Id           = info.Id;
     this.Title        = info.Title;
     this.Address      = info.Address;
     this.Imgurl       = info.Imgurl;
     this.IsTop        = info.IsTop;
     this.Content      = info.Content;
     this.DeliveryTime = info.DeliveryTime;
     return(this);
 }
コード例 #4
0
        public ActivityStyle ToInfo()
        {
            ActivityStyle info = new ActivityStyle();

            info.Title        = this.Title;
            info.DeliveryTime = this.DeliveryTime;
            info.Address      = this.Address;
            info.Imgurl       = this.Imgurl;
            info.Content      = this.Content;
            info.IsTop        = this.IsTop;
            return(info);
        }