public ActionResult Finish(int rid) { var model = _reservationService.GetReservationiById(rid); var res = _reservationService.AlterReservationState(rid, (int)DealState.Treated); if (res.Status) { ViewData["Message"] = @"操作成功"; model = _reservationService.GetReservationiById(rid); return(View("Detail", model)); } ViewData["Message"] = @"操作失败"; return(View("Detail", model)); }