public ActionResult Save(string id, RequestStatus requestStatus) { xmasDB db = new xmasDB(); var order = db.UpdateRequest(id, requestStatus); return(RedirectToAction("Detail", new { orderId = id })); }
public void Update_Order_Should_Return_True() { var db = new xmasDB(); Assert.IsTrue(db.UpdateRequest(orderId.ToString(), RequestStatus.Done)); }