public void RemoveProject(VolunteerProject project) { foreach (Match match in Matches) { if (match.Project == project) { Matches.Remove(match); break; } } }
private void SuggestVolunteers() { using (var db = new VolunteerOrgContext()) { foreach (Volunteer volunteer in db.Volunteers.Include("Location")) { if (CheckVolunteerSuggest(volunteer) == true) { Suggestion newSuggestion = volunteer.AddSuggestion(this); Matches.Add(newSuggestion); } } } }
public void AddMatch(Match match) { Matches.Add(match); }
public IEnumerable <Invite> GetInvites() { return(Matches.OfType <Invite>()); }