убрал закоментированный код

This commit is contained in:
parent 5def95e150
commit c538d61a1d
5 changed files with 2 additions and 23 deletions

View File

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

View File

@ -5,18 +5,6 @@ using System.Text;
using System.Threading.Tasks;
namespace ProjectPolyclinic.Entities;
//public class TempMedicalHistory
//{
// public int Id { get; set; }
// public int PatientId { get; set; }
// public int DoctorId { get; set; }
// public DateTime VisitDate { get; set; }
// public int Status { get; set; }
// public int DrugId { get; set; }
// public int Count { get; set; }
//}
public class TempMedicalHistory
{
public int Id { get; set; }
@ -24,8 +12,6 @@ public class TempMedicalHistory
public int DoctorId { get; set; }
public DateTime VisitDate { get; set; }
public int Status { get; set; }
// Поля для лекарств
public int DrugId { get; set; }
public int Count { get; set; }
}

View File

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

View File

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