Пример #1
0
        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));
            }
        }
Пример #2
0
        public ActionResult <GasCardAccountSearchResModel> Manage_GasCardAccount_Search()
        {
            GasCardAccountSearchResModel gasCardAccountSearchResModel = new GasCardAccountSearchResModel();
            int count = 0;

            gasCardAccountSearchResModel.gas_Card_Accounts = _busService.GasCardAccount_Search();
            if (_busService.GasCardAccount_Search().Count != 0)
            {
                count = _busService.GasCardAccount_Search().Count;
            }
            gasCardAccountSearchResModel.IsSuccess                  = true;
            gasCardAccountSearchResModel.baseViewModel.Message      = "查询加油卡账户信息成功";
            gasCardAccountSearchResModel.baseViewModel.ResponseCode = 200;
            gasCardAccountSearchResModel.TotalNum = count;
            _ILogger.Information("查询加油卡账户信息成功");
            return(Ok(gasCardAccountSearchResModel));
        }