Exemplo n.º 1
0
 public Programme Edit(Programme entity, ProgrammeModel model)
 {
     entity.CollegeId     = model.CollegeId;
     entity.ProgrammeName = model.ProgrammeName;
     entity.ModifiedBy    = model.ModifiedBy;
     entity.ModifiedDate  = model.ModifiedDate;
     return(entity);
 }
Exemplo n.º 2
0
 public Programme Create(ProgrammeModel model)
 {
     return(new Programme
     {
         CollegeId = model.CollegeId,
         ProgrammeName = model.ProgrammeName,
         CreatedBy = model.CreatedBy,
         CreatedDate = DateTime.Now,
     });
 }
Exemplo n.º 3
0
        public LecturerModel(Lecturer lecturer)
        {
            if (lecturer == null)
            {
                return;
            }
            LecturerId  = lecturer.LecturerId;
            CollegeId   = lecturer.CollegeId;
            ProgrammeId = lecturer.ProgrammeId;
            FirstName   = lecturer.FirstName;
            MiddleName  = lecturer.MiddleName;
            LastName    = lecturer.LastName;
            Title       = lecturer.Title;
            StaffNo     = lecturer.StaffNo;
            Email       = lecturer.Email;
            Gender      = lecturer.Gender;

            Programme = new ProgrammeModel();
            College   = new CollegeModel();
            Courses   = new HashSet <CourseModel>();
        }
Exemplo n.º 4
0
        public StudentModel(Student student)
        {
            if (student == null)
            {
                return;
            }
            StudentId   = student.StudentId;
            FirstName   = student.FirstName;
            MiddleName  = student.MiddleName;
            LastName    = student.LastName;
            MatricNo    = student.MatricNo;
            Email       = student.Email;
            Phone       = student.Phone;
            Gender      = student.Gender;
            ProgrammeId = student.ProgrammeId;
            CollegeId   = student.CollegeId;
            LevelId     = student.LevelId;

            Programme = new ProgrammeModel();
            College   = new CollegeModel();
            Level     = new LevelModel();
        }
Exemplo n.º 5
0
 public LecturerModel()
 {
     Courses   = new HashSet <CourseModel>();
     Programme = new ProgrammeModel();
     College   = new CollegeModel();
 }