diff --git a/LawCompany/LawCompanyGuarantorApp/Views/Home/Index.cshtml b/LawCompany/LawCompanyGuarantorApp/Views/Home/Index.cshtml
new file mode 100644
index 0000000..b146c4f
--- /dev/null
+++ b/LawCompany/LawCompanyGuarantorApp/Views/Home/Index.cshtml
@@ -0,0 +1,12 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+
+
+
+
LawCompany
+ Курсовая работа
+
+
+
diff --git a/LawCompany/LawCompanyRestApi/Controllers/CaseController.cs b/LawCompany/LawCompanyRestApi/Controllers/CaseController.cs
index 6e8c42f..c13c877 100644
--- a/LawCompany/LawCompanyRestApi/Controllers/CaseController.cs
+++ b/LawCompany/LawCompanyRestApi/Controllers/CaseController.cs
@@ -38,6 +38,20 @@ namespace LawCompanyRestApi.Controllers
}
}
+ [HttpGet("{id}")]
+ public CaseViewModel? GetCase(int id)
+ {
+ try
+ {
+ return _logic.ReadElement(new CaseSearchModel { Id = id, });
+ }
+ catch (Exception ex)
+ {
+ _logger.LogError(ex, "Ошибка получения списка продуктов");
+ throw;
+ }
+ }
+
[HttpPost]
public void CreateCase(CaseBindingModel model)
{
@@ -69,51 +83,6 @@ namespace LawCompanyRestApi.Controllers
}
- [HttpPost]
- public void AnalysisCase(CaseBindingModel model)
- {
- try
- {
- //возможно переделаю метод
- _logic.CaseAnalysis(model);
- }
- catch (Exception ex)
- {
- _logger.LogError(ex, "Ошибка создания заказа");
- throw;
- }
- }
-
- [HttpPost]
- public void HearingCase(CaseBindingModel model)
- {
- try
- {
- //возможно переделаю метод
- _logic.CaseHearing(model);
- }
- catch (Exception ex)
- {
- _logger.LogError(ex, "Ошибка создания заказа");
- throw;
- }
- }
-
- [HttpPost]
- public void CloseCase(CaseBindingModel model)
- {
- try
- {
-
- _logic.CloseCase(model);
- }
- catch (Exception ex)
- {
- _logger.LogError(ex, "Ошибка создания заказа");
- throw;
- }
- }
-
[HttpPost]
public void DeleteCase(CaseBindingModel model)
{
@@ -129,21 +98,6 @@ namespace LawCompanyRestApi.Controllers
}
}
- [HttpPost]
- public void AddClientToCase(Tuple