public StudentDto Create(StudentDto student) { var entity = ToStudent(student); var result = _studentDao.Create(entity); return(ToStudentDto(result)); }
public Student StoreStudent(Student student) { if (student != null) { student.Timestamp = DateTime.Now.ToString("yyyyMMddHHmmss"); _studentDao.Create(student); } return(student); }