コード例 #1
0
        // set chờ duyệt
        public int changeChoDuyet(int id)
        {
            var user = ((UserLogin)Session[CommonStants.USER_SESSION]).userName;

            var dao   = new DonHangDAO();
            var check = dao.GetOrderByID(id);

            if (check.STATUS == 2)
            {
                return(dao.ChangeStatus(id, user, 1));
            }

            else
            {
                return(-1);
            }
        }