コード例 #1
0
ファイル: StudentService.cs プロジェクト: dansalan/DCFIv5
 public int GetScholarshipDiscountId(string scho)
 {
     ScholarshipService ss = new ScholarshipService();
     List<ScholarshipDiscount> slist= ss.GetAllScholarships();
     int i = slist.FindIndex(s => s.Description.Equals(scho));
     return slist[i].ScholarshipDiscountId;
 }
コード例 #2
0
 public List<ScholarshipDiscount> GetScholarshipDiscounts()
 {
     ScholarshipService ss = new ScholarshipService();
     List<ScholarshipDiscount> slist = new List<ScholarshipDiscount>();
     slist=ss.GetAllScholarships();
     return slist;
 }