фикс конфликта

This commit is contained in:
commit 882ee2f373
3 changed files with 1 additions and 8 deletions

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)
{