From 00567e8c6a97c85dfde25887ec47fc3938e1b6b8 Mon Sep 17 00:00:00 2001 From: "a.puchkina" Date: Thu, 30 May 2024 03:22:48 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=81=D1=83=D0=BB=D1=8C?= =?UTF-8?q?=D1=82=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D1=8F=D1=8E=D1=82=D1=81=D1=8F!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs | 4 ++-- .../Controllers/ConsultationController.cs | 5 +++-- .../Views/Consultation/UpdateConsultation.cshtml | 8 +++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs b/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs index 4d12370..022c99d 100644 --- a/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs +++ b/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs @@ -11,9 +11,9 @@ namespace LawFirmDatabaseImplement { if (optionsBuilder.IsConfigured == false) { - optionsBuilder.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); + //optionsBuilder.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); - //optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); + optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } diff --git a/LawFim/LawFirmGuarantorApp/Controllers/ConsultationController.cs b/LawFim/LawFirmGuarantorApp/Controllers/ConsultationController.cs index e4fc155..2d5fb28 100644 --- a/LawFim/LawFirmGuarantorApp/Controllers/ConsultationController.cs +++ b/LawFim/LawFirmGuarantorApp/Controllers/ConsultationController.cs @@ -83,7 +83,7 @@ namespace LawFirmGuarantorApp.Controllers return View(); } [HttpPost] - public void UpdateConsultation(int id, int cost, DateTime date, List lawyers) + public void UpdateConsultation(int id, int cost, DateTime date, List lawyers, int caseId) { if (APIClient.Guarantor == null) { @@ -106,7 +106,8 @@ namespace LawFirmGuarantorApp.Controllers GuarantorId = APIClient.Guarantor.Id, ConsultationDate = date, Cost = cost, - ConsultationLawyers = a + ConsultationLawyers = a, + CaseId = caseId }); Response.Redirect("/Home/Consultations"); } diff --git a/LawFim/LawFirmGuarantorApp/Views/Consultation/UpdateConsultation.cshtml b/LawFim/LawFirmGuarantorApp/Views/Consultation/UpdateConsultation.cshtml index 17509ce..8e661f5 100644 --- a/LawFim/LawFirmGuarantorApp/Views/Consultation/UpdateConsultation.cshtml +++ b/LawFim/LawFirmGuarantorApp/Views/Consultation/UpdateConsultation.cshtml @@ -16,7 +16,13 @@
Дата и время
- + +
+
+
+
Номер дела
+
+