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"); }