Esempio n. 1
0
        public string Save(Teacher teacher)
        {
            bool isEmailExists = teacherGetway.IsEmailExists(teacher.Email);

            if (isEmailExists)
            {
                return("Email Alardy Exists");
            }
            else
            {
                int rowAffact = teacherGetway.Save(teacher);
                if (rowAffact > 0)
                {
                    return("Teacher Recoard Add Succefull");
                }
                return("Teacher Recoard Add Failed");
            }
        }
Esempio n. 2
0
 public bool Save(Teacher teacher)
 {
     return(_Getway.Save(teacher));
 }