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