internal static bool GatheringItemOutEquality(GatheringItemOut x, GatheringItemOut y) { return (x.City == y.City && x.Title == y.Title && x.details == y.details && x.occurrenceData == y.occurrenceData && UserItemEquality(x.organizer, y.organizer) && CompareList(x.atendees, y.atendees, UserItemEquality)); }
public async Task <IEnumerable <GatheringItemOut> > CityListGatherings(string city) { int id = await Logic.CityId(Output, city); var data = await Output.GetFilter <Gathering>(x => x.MapDataId == id); var ret = new List <GatheringItemOut>(); foreach (var item in data) { GatheringItemOut retItem = await Logic.PopulateItem(Output, item); retItem.organizer.Password = ""; foreach (var item2 in retItem.atendees) { item2.Password = ""; } ret.Add(retItem); } return(ret); }