Пример #1
0
 public Party()
 {
     CreationDate = DateTime.UtcNow;
     Info         = new PartyInfo();
     Categories   = new Category[0];
     Guests       = new Guest[0];
 }
Пример #2
0
        public void Update(PartyInfo info)
        {
            Name            = info.Name != null ? info.Name : Name;
            Description     = info.Description != null ? info.Description : Description;
            Address         = info.Address != null ? info.Address : Address;
            ExactDirections = info.ExactDirections != null ? info.ExactDirections : ExactDirections;

            DateFrom = info.DateFrom.HasValue ? info.DateFrom : DateFrom;
            DateTo   = info.DateTo.HasValue ? info.DateTo : DateTo;
            Budget   = info.Budget.HasValue ? info.Budget : Budget;
        }