Реструктурировал проект с бизнеслогикой

This commit is contained in:
Никита Потапов 2024-05-26 11:43:01 +04:00
parent 2047774700
commit 9210c87079
10 changed files with 12 additions and 4 deletions

View File

@ -20,11 +20,19 @@ namespace PolyclinicWebAppImplementer.Controllers
public IActionResult Index() public IActionResult Index()
{ {
List<DiagnoseViewModel> diagnoses = _diagnoseLogic.ReadList(); List<DiagnoseViewModel> diagnoses = _diagnoseLogic.ReadList();
if (diagnoses == null)
{
diagnoses = new();
}
return View(diagnoses); return View(diagnoses);
} }
[HttpGet]
public IActionResult CreateDiagnose()
{
}
[HttpGet]
public IActionResult EditDiagnose()
{
}
} }
} }