Ejemplo n.º 1
0
 public void Create(Student s)
 {
     try
     {
         Validate(s);
         dal.Create(s);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
Ejemplo n.º 2
0
 public bool Create(Student model)
 {
     try
     {
         if (model == null)
         {
             return(false);
         }
         var create = studentDAL.Create(model);
         return(create);
     }
     catch
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
 public static List<Student> Create(Student student)
 {
     StudentDAL obj = new StudentDAL();
     return obj.Create(student);
 }
Ejemplo n.º 4
0
 public bool Create(int typeId, string name, char gender)
 {
     return(StudentDAL.Create(typeId, name, gender));
 }