Beispiel #1
0
 public Course Edit(Course entity, CourseModel model)
 {
     entity.CourseId     = model.CourseId;
     entity.CourseName   = model.CourseName;
     entity.CourseCode   = model.CourseCode;
     entity.CollegeId    = model.CollegeId;
     entity.ProgrammeId  = model.ProgrammeId;
     entity.LevelId      = model.LevelId;
     entity.LecturerId   = model.LecturerId;
     entity.ModifiedBy   = model.ModifiedBy;
     entity.ModifiedDate = model.ModifiedDate;
     return(entity);
 }
Beispiel #2
0
 public Course Create(CourseModel model)
 {
     return(new Course
     {
         CourseName = model.CourseName,
         CourseCode = model.CourseCode,
         CollegeId = model.CollegeId,
         ProgrammeId = model.ProgrammeId,
         LevelId = model.LevelId,
         LecturerId = model.LecturerId,
         CreatedBy = model.CreatedBy,
         CreatedDate = DateTime.Now,
     });
 }