public Boolean UpdateSY(ref SchoolYear schoolyear, ref string message) { message = String.Empty; SchoolYearBDO syBDO = new SchoolYearBDO(); TranslateSYDTOToSYBDO(schoolyear, syBDO); return syLogic.UpdateSY(ref syBDO, ref message); }
public Boolean UpdateSY(ref SchoolYear schoolyear, ref string message) { message = String.Empty; SchoolYearBDO syBDO = new SchoolYearBDO(); TranslateSYDTOToSYBDO(schoolyear, syBDO); return(syLogic.UpdateSY(ref syBDO, ref message)); }
public SchoolYear GetSY(string schoolyear) { SchoolYearBDO SYbdo = new SchoolYearBDO(); SYbdo = syLogic.GetSY(schoolyear); SchoolYear u = new SchoolYear(); TranslateSYBDOToSYDTO(SYbdo, u); return u; }
public SchoolYear GetSY(string schoolyear) { SchoolYearBDO SYbdo = new SchoolYearBDO(); SYbdo = syLogic.GetSY(schoolyear); SchoolYear u = new SchoolYear(); TranslateSYBDOToSYDTO(SYbdo, u); return(u); }
public List<SchoolYear> GetAllSY() { List<SchoolYearBDO> syBDOList = syLogic.GetAllSY(); List<SchoolYear> allSY = new List<SchoolYear>(); foreach (SchoolYearBDO syBDO in syBDOList) { SchoolYear sy = new SchoolYear(); TranslateSYBDOToSYDTO(syBDO, sy); allSY.Add(sy); } return allSY; }
public List <SchoolYear> GetAllSY() { List <SchoolYearBDO> syBDOList = syLogic.GetAllSY(); List <SchoolYear> allSY = new List <SchoolYear>(); foreach (SchoolYearBDO syBDO in syBDOList) { SchoolYear sy = new SchoolYear(); TranslateSYBDOToSYDTO(syBDO, sy); allSY.Add(sy); } return(allSY); }
private void TranslateSYBDOToSYDTO(SchoolYearBDO syBDO, SchoolYear schoolyear) { schoolyear.SY = syBDO.SY; schoolyear.CurrentSY = syBDO.CurrentSY; }