diff --git a/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs b/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs index 31732c2..1dd6339 100644 --- a/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs +++ b/Polyclinic/PolyclinicDatabaseImplement/Models/Course.cs @@ -36,7 +36,7 @@ namespace PolyclinicDatabaseImplement.Models } } - public static Course Create(SecuritySystemDatabase context, CourseBindingModel model) + public static Course Create(PolyclinicDatabase context, CourseBindingModel model) { return new Course() { @@ -70,7 +70,7 @@ namespace PolyclinicDatabaseImplement.Models CourseDiagnoses = CourseDiagnoses }; - public void UpdateDiagnoses(SecuritySystemDatabase context, CourseBindingModel model) + public void UpdateDiagnoses(PolyclinicDatabase context, CourseBindingModel model) { //var courseDiagnoses = context.CourseDiagnoses.Where(rec => rec.CourseId == model.Id).ToList(); //if (courseDiagnoses != null && courseDiagnoses.Count > 0) diff --git a/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs b/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs index 5628550..7e6f892 100644 --- a/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs +++ b/Polyclinic/PolyclinicDatabaseImplement/PolyclinicDatabase.cs @@ -3,7 +3,7 @@ using PolyclinicDatabaseImplement.Models; namespace SecuritySystemDatabaseImplement { - public class SecuritySystemDatabase : DbContext + public class PolyclinicDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {