Exemplo n.º 1
0
        public void AddHWBL(HwToStydyClassOnDateDTO hwDTO)
        {
            HwToStydyClassOnDate h = new HwToStydyClassOnDate();

            h.deadline = hwDTO.deadline;
            h.durationOfPreparation     = hwDTO.durationOfPreparation;
            h.hwDescription             = hwDTO.hwDescription;
            h.hwToStydyClassOnDate_Date = hwDTO.hwToStydyClassOnDate_Date;
            h.studyClassId         = hwDTO.studyClassId;
            h.verificationQuestion = hwDTO.verificationQuestion;
            h.verificationAnswer   = hwDTO.verificationAnswer;
            TeacherDAL t = new TeacherDAL();

            t.AddHW(h);
        }
Exemplo n.º 2
0
        public int AddHw(HwToStydyClassOnDateDTO hwDTO)
        {
            HwToStydyClassOnDate hw = new HwToStydyClassOnDate();
            Teacher teacher         = new Teacher();

            hw.studyClassId = hwDTO.studyClassId;
            hw.hwToStydyClassOnDate_Date = hwDTO.hwToStydyClassOnDate_Date;
            hw.hwDescription             = hwDTO.hwDescription;
            hw.deadline = hwDTO.deadline;
            hw.durationOfPreparation = hwDTO.durationOfPreparation;
            hw.verificationQuestion  = hwDTO.verificationQuestion;
            hw.verificationAnswer    = hwDTO.verificationAnswer;

            HwDAL hwDAL  = new HwDAL();
            int   result = hwDAL.AddHw(hw);

            return(result);
        }