Реструктурировал проект с бизнеслогикой
This commit is contained in:
parent
2047774700
commit
9210c87079
@ -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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user