public ActionResult SubmitDispatchBill(DispatchBillViewModel model) { string strMessage; DispatchSystem dispatch = new DispatchSystem(); bool bSuccess = dispatch.SubmitDispatchBill(model.Id, LoginAccountId, LoginStaffName, out strMessage); var ret = new { Success = bSuccess, Message = strMessage }; return Json(ret); }