Exemple #1
0
 public void Update(CreateEventModel model, Venue venue = null)
 {
     if (model != null)
     {
         Binder.Bind(this, model);
     }
     LastEditDate = DateTime.UtcNow;
     if (venue != null)
     {
         Venue = venue;
     }
 }
Exemple #2
0
 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;
 }