示例#1
0
        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));
            }
        }
示例#2
0
 public EventModel(RomanApp.Service.Entities.Event entity)
     : this()
 {
     Map(entity);
 }