// Done public bool UpdateScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, ref string message) { ScholarshipDiscountBDO sdBDO = new ScholarshipDiscountBDO(); TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdBDO); return(sLogic.UpdateScholarshipDiscount(ref sdBDO, ref message)); }
public bool AddScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, string scholarshipCode, ref string message) { ScholarshipDiscountBDO sdbdo = new ScholarshipDiscountBDO(); TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdbdo); return(sLogic.AddScholarshipDiscount(sdbdo, scholarshipCode, ref message)); }
private void TranslateScholarshipDiscountToScholarshipDiscountBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo) { sbdo.Deactivated = sc.Deactivated; sbdo.Discount = sc.Discount; sbdo.FeeCode = sc.FeeCode; sbdo.ScholarshipCode = sc.ScholarshipCode; sbdo.ScholarshipFeeCode = sc.ScholarshipFeeCode; }
// Done public List<ScholarshipDiscount> GetAllScholarshipDiscount(string scholarshipCode) { List<ScholarshipDiscount> sDiscount = new List<ScholarshipDiscount>(); foreach (ScholarshipDiscountBDO sdbdo in sLogic.GetAllDiscounts(scholarshipCode)) { ScholarshipDiscount sc = new ScholarshipDiscount(); TranslateScholarshipDiscountToScholarshipDiscountBDO(sc, sdbdo); sDiscount.Add(sc); } return sDiscount; }
// Done public List<ScholarshipDiscount> GetAllScholarships() { List<ScholarshipDiscount> slist = new List<ScholarshipDiscount>(); foreach (ScholarshipDiscountBDO sbdo in sLogic.GetAllScholarships()) { ScholarshipDiscount s = new ScholarshipDiscount(); TranslateScholarshipBDOToScholarship(sbdo, s); slist.Add(s); } return slist; }
// Done public List <ScholarshipDiscount> GetAllScholarshipDiscount(string scholarshipCode) { List <ScholarshipDiscount> sDiscount = new List <ScholarshipDiscount>(); foreach (ScholarshipDiscountBDO sdbdo in sLogic.GetAllDiscounts(scholarshipCode)) { ScholarshipDiscount sc = new ScholarshipDiscount(); TranslateScholarshipDiscountToScholarshipDiscountBDO(sc, sdbdo); sDiscount.Add(sc); } return(sDiscount); }
public void TranslateScholarshipToScholarshipBDO(ScholarshipDiscount s, ScholarshipDiscountBDO sBDO) { //sBDO.ScholarshipCode = s.ScholarshipCode; //sBDO.Condition = s.Condition; sBDO.Deactivated = s.Deactivated; sBDO.Description = s.Description; // sBDO.Privilege = s.Privilege; }
// Done public bool UpdateScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, ref string message) { ScholarshipDiscountBDO sdBDO = new ScholarshipDiscountBDO(); TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdBDO); return sLogic.UpdateScholarshipDiscount(ref sdBDO, ref message); }
public bool AddScholarshipDiscount(ref ScholarshipDiscount scholarshipDiscount, string scholarshipCode, ref string message) { ScholarshipDiscountBDO sdbdo = new ScholarshipDiscountBDO(); TranslateScholarshipDiscountToScholarshipDiscountBDO(scholarshipDiscount, sdbdo); return sLogic.AddScholarshipDiscount(sdbdo, scholarshipCode, ref message); }
public bool CreateScholarship(ref ScholarshipDiscount scholarship, ref string message) { ScholarshipDiscountBDO sbdo = new ScholarshipDiscountBDO(); TranslateScholarshipToScholarshipBDO(scholarship, sbdo); return sLogic.CreateScholarship(ref sbdo, ref message); }
private void TranslateScholarshipToScholarshipBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo) { sbdo.ScholarshipDiscountId = sc.ScholarshipDiscountId; sbdo.Scholarship = sc.Scholarship; sbdo.Discount = (float)sc.Discount; sbdo.Deactivated = sc.Deactivated; sbdo.Description = sc.Description; }
private void TranslateScholarshipDiscountToScholarshipDiscountBDO(ScholarshipDiscount sc, ScholarshipDiscountBDO sbdo) { //FeeService fs = new FeeService(); //Fee f = new Fee(); //f = fs.GetFee(sc.FeeID); sbdo.Deactivated = sc.Deactivated; sbdo.Discount = (float)sc.Discount; sbdo.ScholarshipDiscountId= sc.ScholarshipDiscountId; //sbdo.Fee = f; }
private void TranslateScholarshipDiscountBDOToScholarshipDiscount(ScholarshipDiscountBDO sc, ScholarshipDiscount sbdo) { sbdo.Deactivated = sc.Deactivated; sbdo.Discount = sc.Discount; sbdo.ScholarshipDiscountId = sc.ScholarshipDiscountId; }
public List<ScholarshipDiscount> ToScholarhsipDiscountList(List<ScholarshipDiscountBDO> sdbdo) { List<ScholarshipDiscount> scholarshipDiscounts = new List<ScholarshipDiscount>(); foreach (ScholarshipDiscountBDO SD in sdbdo) { ScholarshipDiscount s = new ScholarshipDiscount(); TranslateScholarshipDiscountBDOToScholarshipDiscount(SD, s); scholarshipDiscounts.Add(s); } return scholarshipDiscounts; }