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