public void Map(RomanApp.Service.Entities.Event entity) { base.Map(entity); DateCreated = entity.DateCreated; Guests.Clear(); Expenses.Clear(); foreach (var o in entity.Guests) { Guests.Add(new GuestModel(o)); } foreach (var o in entity.Expenses) { Expenses.Add(new ExpenseModel(o)); } }
public EventModel(RomanApp.Service.Entities.Event entity) : this() { Map(entity); }