public List <AttendingGuest> GuestList() { List <AttendingGuest> atGuestList = new List <AttendingGuest>(); var guestList = _Repository.GetAllAsync().Result.Where(r => r.WillAttend == true); foreach (var guest in guestList) { GuestAdaptor vGuestAd = new GuestAdaptor(); atGuestList.Add(vGuestAd.Adapt(guest)); } return(atGuestList); }
public void Add(GuestResponse aGuestResponse) { GuestAdaptor vGuestAd = new GuestAdaptor(); _Repository.Add(vGuestAd.Adapt(aGuestResponse)); }