コード例 #1
0
ファイル: Event.cs プロジェクト: rufolangus/WannaGo_Backend
 public void Update(CreateEventModel model, Venue venue = null)
 {
     if (model != null)
     {
         Binder.Bind(this, model);
     }
     LastEditDate = DateTime.UtcNow;
     if (venue != null)
     {
         Venue = venue;
     }
 }
コード例 #2
0
ファイル: Event.cs プロジェクト: rufolangus/WannaGo_Backend
 public Event(CreateEventModel model = null, ApplicationUser user = null)
 {
     this.ImageUrl    = model.ImageURL;
     this.Name        = model.Name;
     this.Type        = model.Type;
     this.Description = model.Description;
     this.StartTime   = model.StartTime;
     this.EndTime     = model.EndTime;
     this.IsPrivate   = model.IsPrivate;
     this.Price       = model.Price;
     Host             = user;
     CreatedDate      = DateTime.UtcNow;
 }