// Done public bool UpdateScholarship(ref Scholarship scholarship, ref string message) { ScholarshipBDO sBDO = new ScholarshipBDO(); TranslateScholarshipToScholarshipBDO(scholarship, sBDO); return(sLogic.UpdateScholarship(ref sBDO, ref message)); }
public bool CreateScholarship(ref Scholarship scholarship, ref string message) { ScholarshipBDO sbdo = new ScholarshipBDO(); TranslateScholarshipToScholarshipBDO(scholarship, sbdo); return(sLogic.CreateScholarship(ref sbdo, ref message)); }
public void TranslateScholarshipToScholarshipBDO(Scholarship s, ScholarshipBDO sBDO) { sBDO.ScholarshipCode = s.ScholarshipCode; sBDO.Condition = s.Condition; sBDO.Deactivated = s.Deactivated; sBDO.Description = s.Description; sBDO.Privilege = s.Privilege; }
private void TranslateScholarshipToScholarshipBDO(Scholarship sc, ScholarshipBDO sbdo) { sbdo.Condition = sc.Condition; sbdo.Deactivated = sc.Deactivated; sbdo.Description = sc.Description; sbdo.Privilege = sc.Privilege; sbdo.ScholarshipCode = sc.ScholarshipCode; }
// Done public List<Scholarship> GetAllScholarships() { List<Scholarship> slist = new List<Scholarship>(); foreach (ScholarshipBDO sbdo in sLogic.GetAllScholarships()) { Scholarship s = new Scholarship(); TranslateScholarshipBDOToScholarship(sbdo, s); slist.Add(s); } return slist; }
// Done public List <Scholarship> GetAllScholarships() { List <Scholarship> slist = new List <Scholarship>(); foreach (ScholarshipBDO sbdo in sLogic.GetAllScholarships()) { Scholarship s = new Scholarship(); TranslateScholarshipBDOToScholarship(sbdo, s); slist.Add(s); } return(slist); }
private void TranslateScholarshipBDOToScholarship(ScholarshipBDO sc, Scholarship sbdo) { sbdo.Condition = sc.Condition; sbdo.Deactivated = sc.Deactivated; sbdo.Description = sc.Description; sbdo.Privilege = sc.Privilege; sbdo.ScholarshipCode = sc.ScholarshipCode; }
// Done public bool UpdateScholarship(ref Scholarship scholarship, ref string message) { ScholarshipBDO sBDO = new ScholarshipBDO(); TranslateScholarshipToScholarshipBDO(scholarship, sBDO); return sLogic.UpdateScholarship(ref sBDO, ref message); }
public bool CreateScholarship(ref Scholarship scholarship, ref string message) { ScholarshipBDO sbdo = new ScholarshipBDO(); TranslateScholarshipToScholarshipBDO(scholarship, sbdo); return sLogic.CreateScholarship(ref sbdo, ref message); }