Exemplo n.º 1
0
        /// <summary>
        /// Update
        /// </summary>
        public async Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileVerhicleSerise subcontractProfileVerhicleSerise)
        {
            var p = new DynamicParameters();

            p.Add("@verhicle_serise_id", subcontractProfileVerhicleSerise.VerhicleSeriseId);
            p.Add("@verhicle_serise_name", subcontractProfileVerhicleSerise.VerhicleSeriseName);
            p.Add("@verhicle_brand_id", subcontractProfileVerhicleSerise.VerhicleBrandId);

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

            return(true);
        }
Exemplo n.º 2
0
        public Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileVerhicleSerise subcontractProfileVerhicleSerise)
        {
            _logger.LogInformation($"Start VerhicleSeriseController::Update", subcontractProfileVerhicleSerise);

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

            var result = _service.Update(subcontractProfileVerhicleSerise);

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