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); }
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); }