Esempio n. 1
0
 public object Register(Course info)
 {
     try
     {
         ValidateTeacher(info);
         ValidateMaxTeacherCourses(info);
         var model = info.Map();
         using (var dao = new CourseDAO())
         {
             return(dao.Register(model));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }