Esempio n. 1
0
        //public HocSinh getStudent(int mahs)
        //{
        //    try
        //    {
        //        return _hsDAO.getStudent(mahs);
        //    }
        //    catch (SqlException ex)
        //    {
        //        throw ex;
        //    }
        //}

        //public List<HocSinh> getStudentsByLop(int maLop)
        //{
        //    try
        //    {
        //        return _hsDAO.getStudentsByLop(mahs);
        //    }
        //    catch (SqlException ex)
        //    {
        //        throw ex;
        //    }
        //}

        public int ThemHocSinh(HocSinh hs)
        {
            try
            {
                return(_hsDAO.ThemHocSinh(hs));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }