public ActionResult <GasCardAccountSearchResModel> Car_Reassignment_Record_Add(ReassignmentRecordAddViewModel reassignmentRecordAddViewModel) { GasCardAccountSearchResModel gasCardAccountSearchResModel = new GasCardAccountSearchResModel(); var gas_Card_Accounts = _busService.Car_Reassignment_Record_Add(reassignmentRecordAddViewModel); if (gas_Card_Accounts == 1) { gasCardAccountSearchResModel.IsSuccess = true; gasCardAccountSearchResModel.baseViewModel.Message = "增加改派信息并给改派前司机发短信,成功"; gasCardAccountSearchResModel.baseViewModel.ResponseCode = 200; gasCardAccountSearchResModel.TotalNum = gas_Card_Accounts; _ILogger.Information("增加改派信息并给改派前司机发短信,成功"); return(Ok(gasCardAccountSearchResModel)); } else { gasCardAccountSearchResModel.IsSuccess = false; gasCardAccountSearchResModel.baseViewModel.Message = "增加改派信息并给改派前司机发短信,失败"; gasCardAccountSearchResModel.baseViewModel.ResponseCode = 400; gasCardAccountSearchResModel.TotalNum = gas_Card_Accounts; _ILogger.Information("增加改派信息并给改派前司机发短信,失败"); return(Ok(gasCardAccountSearchResModel)); } }