фикс конфликта
This commit is contained in:
commit
882ee2f373
@ -37,8 +37,4 @@ public class Doctor
|
|||||||
SpecializationLevel = specializationLevel
|
SpecializationLevel = specializationLevel
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -53,8 +53,7 @@ public class DoctorRepository : IDoctorRepository
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user