PIBD-22. Denisov V.D. LabWork_4 #5

Closed
kisame wants to merge 2 commits from LabWork_4 into LabWork_3
3 changed files with 1 additions and 8 deletions
Showing only changes of commit 882ee2f373 - Show all commits

View File

@ -37,8 +37,4 @@ public class Doctor
SpecializationLevel = specializationLevel
};
}
}

View File

@ -95,8 +95,6 @@ public class WordBuilder
return this;
}
public void Build()
{
using var wordDocument = WordprocessingDocument.Create(_filePath,

View File

@ -53,8 +53,7 @@ public class DoctorRepository : IDoctorRepository
try
{
using var connection = new NpgsqlConnection(_connectionString.ConnectionString);
// Проверяем, существует ли запись
var existingDoctor = connection.QueryFirstOrDefault<Doctor>("SELECT * FROM Doctors WHERE id = @Id", new { doctor.Id });
if (existingDoctor == null)
{