예제 #1
0
 public static IList<Note> GetListFromUniversity(string univerId)
 {
     Notes db = new Notes();
     var notes = db.GetList();
     System.Collections.Generic.List<Note> uNotes = new System.Collections.Generic.List<Note>();
     foreach (var note in notes)
     {
         if (note.UniversityID == univerId)
         {
             uNotes.Add(note);
         }
     }
     return uNotes;
 }
예제 #2
0
 public static IList<Note> GetListFromState(string stateId)
 {
     Notes db = new Notes();
     var notes = db.GetList();
     System.Collections.Generic.List<Note> uNotes = new System.Collections.Generic.List<Note>();
     University univer;
     foreach (var note in notes)
     {
         univer = UniversityBusiness.Get(note.UniversityID);
         if (univer.StateID == stateId)
         {
             uNotes.Add(note);
         }
     }
     return uNotes;
 }
예제 #3
0
 public static IList<Note> GetList()
 {
     Notes db = new Notes();
     return db.GetList();
 }