예제 #1
0
        public TB_SUBJECTS GetByBoxScheduleId(int scheduleId)
        {
            TB_SUBJECTS        result       = new TB_SUBJECTS();
            List <TB_SUBJECTS> list         = new TB_SUBJECTSSql().SelectAll();
            int             box_schedule_id = new TB_SCHEDULESSql().SelectByPrimaryKey(scheduleId).ScheduleIdBoxSubjectId;
            TB_BOX_SUBJECTS boxSubject      = new TB_BOX_SUBJECTSSql().SelectByPrimaryKey(box_schedule_id);

            result = list.Where(x => x.SubjectId == (boxSubject.BoxSubjectSubjectId)).FirstOrDefault();
            return(result);
        }
예제 #2
0
 public bool Update(TB_SUBJECTS subject)
 {
     return(new TB_SUBJECTSSql().Update(subject));
 }
예제 #3
0
 public bool Insert(TB_SUBJECTS subject)
 {
     return(new TB_SUBJECTSSql().Insert(subject));
 }