Пример #1
0
        /// <summary>
        /// Update
        /// </summary>
        public async Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileBanking subcontractProfileBanking)
        {
            var p = new DynamicParameters();

            p.Add("@bank_id", subcontractProfileBanking.BankId);
            p.Add("@bank_code", subcontractProfileBanking.BankCode);
            p.Add("@bank_name", subcontractProfileBanking.BankName);
            p.Add("@bank_branch", subcontractProfileBanking.BankBranch);

            var ok = await _dbContext.Connection.ExecuteAsync
                         ("uspSubcontractProfileBanking_Update", p, commandType : CommandType.StoredProcedure, transaction : _dbContext.Transaction);

            return(true);
        }
Пример #2
0
        public Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileBanking subcontractProfileBanking)
        {
            _logger.LogInformation($"Start BankingController::Update", subcontractProfileBanking);

            if (subcontractProfileBanking == null)
            {
                _logger.LogWarning($"Start BankingController::Update", subcontractProfileBanking);
            }

            var result = _service.Update(subcontractProfileBanking);

            if (result == null)
            {
                _logger.LogWarning($"BankingController::", "Update NOT FOUND", subcontractProfileBanking);
            }
            return(result);
        }