public Level Edit(Level entity, LevelModel model) { entity.LevelId = model.LevelId; entity.LevelName = model.LevelName; entity.ModifiedBy = model.ModifiedBy; entity.ModifiedDate = model.ModifiedDate; return(entity); }
public Level Create(LevelModel model) { return(new Level { LevelName = model.LevelName, CreatedBy = model.CreatedBy, CreatedDate = DateTime.Now, }); }
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(); }