Exemplo n.º 1
0
        public StudentDto Create(StudentDto student)
        {
            var entity = ToStudent(student);
            var result = _studentDao.Create(entity);

            return(ToStudentDto(result));
        }
Exemplo n.º 2
0
 public Student StoreStudent(Student student)
 {
     if (student != null)
     {
         student.Timestamp = DateTime.Now.ToString("yyyyMMddHHmmss");
         _studentDao.Create(student);
     }
     return(student);
 }