Ejemplo n.º 1
0
        public static bool Register(int id, string name, string email, string password, string city)
        {
            bool status = false;

            if (TraningRepository.Register(id, name, email, password, city))
            {
                status = true;
            }
            return(status);
        }
Ejemplo n.º 2
0
        public static bool Update(int id, string name, string email, string city)
        {
            bool status = false;

            if (TraningRepository.Update(id, name, email, city))
            {
                status = true;
            }
            return(status);
        }
Ejemplo n.º 3
0
        public static bool ValidateStudent(string email, string password)
        {
            bool status = false;

            if (TraningRepository.ValidateStudent(email, password))
            {
                status = true;
            }
            return(status);
        }
Ejemplo n.º 4
0
        public static bool DeleteStudent(int id)
        {
            bool status = false;

            if (TraningRepository.DeleteStudent(id))
            {
                status = true;
            }
            return(status);
        }
Ejemplo n.º 5
0
        public static List <Student> GetAllStudents()
        {
            List <Student> students = TraningRepository.GetAllData();

            return(students);
        }