Exemple #1
0
        public int changeAn(int id)
        {
            var user = ((UserLogin)Session[CommonStants.USER_SESSION]).userName;
            var dao  = new TinTucDAO();
            var kq   = dao.ChangeStatus(id, user, true);

            return(kq);
        }
Exemple #2
0
        public int changeAnHien(int id)
        {
            var user = ((UserLogin)Session[CommonStants.USER_SESSION]).userName;
            var dao  = new TinTucDAO();
            var type = dao.GetById(id);

            var kq = dao.ChangeStatus(id, user, !type.IS_DELETE);

            return(kq);
        }