Beispiel #1
0
 public void RemoveProject(VolunteerProject project)
 {
     foreach (Match match in Matches)
     {
         if (match.Project == project)
         {
             Matches.Remove(match);
             break;
         }
     }
 }
Beispiel #2
0
 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);
             }
         }
     }
 }
Beispiel #3
0
 public void AddMatch(Match match)
 {
     Matches.Add(match);
 }
Beispiel #4
0
 public IEnumerable <Invite> GetInvites()
 {
     return(Matches.OfType <Invite>());
 }