убрал закоментированный код
This commit is contained in:
parent
5def95e150
commit
c538d61a1d
@ -34,8 +34,4 @@ public class Doctor
|
||||
SpecializationLevel = specializationLevel
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using ProjectPolyclinic.Entities.Enums;
|
||||
using ProjectPolyclinic.Entities.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -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; }
|
||||
}
|
||||
|
@ -95,8 +95,6 @@ public class WordBuilder
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void Build()
|
||||
{
|
||||
using var wordDocument = WordprocessingDocument.Create(_filePath,
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user