вливаю всё, что было создано на 5, 6, 7 этапах в ветку main #12
@ -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)
|
||||
|
@ -3,7 +3,7 @@ using PolyclinicDatabaseImplement.Models;
|
||||
|
||||
namespace SecuritySystemDatabaseImplement
|
||||
{
|
||||
public class SecuritySystemDatabase : DbContext
|
||||
public class PolyclinicDatabase : DbContext
|
||||
{
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user