From 14b2ee63ebaa12ac59e5a7c794dd07191b6568a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B0=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A4=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 30 May 2024 12:14:35 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/CaseController.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/LawFim/LawFirmExecutorApp/Controllers/CaseController.cs b/LawFim/LawFirmExecutorApp/Controllers/CaseController.cs index 2525b28..4194b43 100644 --- a/LawFim/LawFirmExecutorApp/Controllers/CaseController.cs +++ b/LawFim/LawFirmExecutorApp/Controllers/CaseController.cs @@ -81,8 +81,11 @@ namespace LawFirmExecutorApp.Controllers APIClient.PostRequest("api/case/updatecase", new CaseBindingModel { - Id = id - + ExecutorId = APIClient.Executor.Id, + Name = name, + Status = status, + CaseType = type, + DateCreate = date }); Response.Redirect("/Home/Cases"); } @@ -94,7 +97,12 @@ namespace LawFirmExecutorApp.Controllers throw new Exception("Вы как суда попали? Суда вход только авторизованным"); } - APIClient.PostRequest("api/case/deletecase", ); + APIClient.PostRequest("api/case/deletecase", new + CaseBindingModel + { + Id = id, + + }); Response.Redirect("/Home/Cases"); }