вливаю всё, что было создано на 5, 6, 7 этапах в ветку main #12

Merged
ekallin merged 180 commits from stage7_user_web_interface_prototype into main 2024-05-01 19:15:20 +04:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 03bb104df1 - Show all commits

View File

@ -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)

View File

@ -3,7 +3,7 @@ using PolyclinicDatabaseImplement.Models;
namespace SecuritySystemDatabaseImplement
{
public class SecuritySystemDatabase : DbContext
public class PolyclinicDatabase : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{