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; }
public List<ScholarshipDiscount> GetScholarshipDiscounts() { ScholarshipService ss = new ScholarshipService(); List<ScholarshipDiscount> slist = new List<ScholarshipDiscount>(); slist=ss.GetAllScholarships(); return slist; }