/// <summary> /// Update /// </summary> public async Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileVerhicleBrand subcontractProfileVerhicleBrand) { var p = new DynamicParameters(); p.Add("@verhicle_brand_id", subcontractProfileVerhicleBrand.VerhicleBrandId); p.Add("@verhicle_brand_name", subcontractProfileVerhicleBrand.VerhicleBrandName); var ok = await _dbContext.Connection.ExecuteAsync ("uspSubcontractProfileVerhicleBrand_Update", p, commandType : CommandType.StoredProcedure, transaction : _dbContext.Transaction); return(true); }
public Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileVerhicleBrand subcontractProfileVerhicleBrand) { _logger.LogInformation($"Start VerhicleBrandController::Update", subcontractProfileVerhicleBrand); if (subcontractProfileVerhicleBrand == null) { _logger.LogWarning($"Start VerhicleBrandController::Update", subcontractProfileVerhicleBrand); } var result = _service.Update(subcontractProfileVerhicleBrand); if (result == null) { _logger.LogWarning($"VerhicleBrandController::", "Update NOT FOUND", subcontractProfileVerhicleBrand); } return(result); }