Example #1
0
 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);
 }
Example #2
0
 public Level Create(LevelModel model)
 {
     return(new Level
     {
         LevelName = model.LevelName,
         CreatedBy = model.CreatedBy,
         CreatedDate = DateTime.Now,
     });
 }
Example #3
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();
        }