/// <summary> /// Update /// </summary> public async Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileReligion subcontractProfileReligion) { var p = new DynamicParameters(); p.Add("@religion_id", subcontractProfileReligion.ReligionId); p.Add("@religion_name_th", subcontractProfileReligion.ReligionNameTh); p.Add("@religion_name_en", subcontractProfileReligion.ReligionNameEn); var ok = await _dbContext.Connection.ExecuteAsync ("uspSubcontractProfileReligion_Update", p, commandType : CommandType.StoredProcedure, transaction : _dbContext.Transaction); return(true); }
public Task <bool> Update(SubcontractProfile.WebApi.Services.Model.SubcontractProfileReligion subcontractProfileReligion) { _logger.LogInformation($"Start ReligionController::Update", subcontractProfileReligion); if (subcontractProfileReligion == null) { _logger.LogWarning($"Start ReligionController::Update", subcontractProfileReligion); } var result = _service.Update(subcontractProfileReligion); if (result == null) { _logger.LogWarning($"ReligionController::", "Update NOT FOUND", subcontractProfileReligion); } return(result); }