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); }
public Programme Create(ProgrammeModel model) { return(new Programme { CollegeId = model.CollegeId, ProgrammeName = model.ProgrammeName, CreatedBy = model.CreatedBy, CreatedDate = DateTime.Now, }); }
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>(); }
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(); }
public LecturerModel() { Courses = new HashSet <CourseModel>(); Programme = new ProgrammeModel(); College = new CollegeModel(); }