public bool CheckAdmin(int userId) { var dao = new DaoLogin(); int isAdmin = dao.CheckIsadmin(userId); if (isAdmin != 0) { return(true); } return(false); }