2024-05-23 14:58:59 +04:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using PolyclinicContracts.BusinessLogicsContracts;
|
|
|
|
|
using PolyclinicContracts.ViewModels;
|
|
|
|
|
using PolyclinicWebAppImplementer.Models;
|
|
|
|
|
|
|
|
|
|
namespace PolyclinicWebAppImplementer.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class DiagnosesController : Controller
|
|
|
|
|
{
|
|
|
|
|
private readonly ILogger<DiagnosesController> _logger;
|
|
|
|
|
private readonly IDiagnoseLogic _diagnoseLogic;
|
|
|
|
|
|
|
|
|
|
public DiagnosesController(ILogger<DiagnosesController> logger, IDiagnoseLogic diagnoseLogic)
|
|
|
|
|
{
|
|
|
|
|
_logger = logger;
|
|
|
|
|
_diagnoseLogic = diagnoseLogic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
public IActionResult Index()
|
|
|
|
|
{
|
2024-05-26 11:27:12 +04:00
|
|
|
|
List<DiagnoseViewModel> diagnoses = _diagnoseLogic.ReadList();
|
2024-05-23 14:58:59 +04:00
|
|
|
|
return View(diagnoses);
|
|
|
|
|
}
|
2024-05-26 11:43:01 +04:00
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
public IActionResult CreateDiagnose()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
|
public IActionResult EditDiagnose()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2024-05-23 14:58:59 +04:00
|
|
|
|
}
|
|
|
|
|
}
|