public EventSummary(Event e) { Id = e.Id; Title = e.Title; StartDate = e.StartDate; EndDate = e.EndDate; Vessels = e.Vessels.Count; Location = new LocationSummary(e.Location); }
public EventDetail(Event e) { Id = e.Id; Title = e.Title; Description = e.Description; StartDate = e.StartDate; EndDate = e.EndDate; VesselEvents = new List <VesselEventDetail>(); foreach (VesselEvent v in e.Vessels) { VesselEvents.Add(new VesselEventDetail(v)); } Location = new LocationSummary(e.Location); }