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