public void SaveCycleData(Sum_StudyFactDateCycle obj) { if (obj.Sdc_Id > 0) { DateCycleRepository.Update(obj); } else { DateCycleRepository.Add(obj); } }
public List <Sum_StudyFactDateCycle> GetCycleDatasByStudent(int studentId, int classId) { return(DateCycleRepository.GetByStudent(studentId, classId)); }
public Sum_StudyFactDateCycle GetCycleData(int studentId, int classId, DateTime asOfDate, DateCycleTypeEnum cycle) { Sum_StudyFactDateCycle daily = DateCycleRepository.GetByStudentDate(studentId, classId, asOfDate, cycle); return(daily); }
public void UpdateCycleData(Sum_StudyFactDateCycle obj) { DateCycleRepository.Update(obj); }