示例#1
0
        public ActionResult Save(string id, RequestStatus requestStatus)
        {
            xmasDB db    = new xmasDB();
            var    order = db.UpdateRequest(id, requestStatus);

            return(RedirectToAction("Detail", new { orderId = id }));
        }
示例#2
0
        public void Update_Order_Should_Return_True()
        {
            var db = new xmasDB();

            Assert.IsTrue(db.UpdateRequest(orderId.ToString(), RequestStatus.Done));
        }