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

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 SpecializationLevel = specializationLevel
}; };
} }
} }

View File

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

View File

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