консультации обновляются!
This commit is contained in:
parent
aa8c8c9c06
commit
00567e8c6a
@ -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);
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ namespace LawFirmGuarantorApp.Controllers
|
||||
return View();
|
||||
}
|
||||
[HttpPost]
|
||||
public void UpdateConsultation(int id, int cost, DateTime date, List<int> lawyers)
|
||||
public void UpdateConsultation(int id, int cost, DateTime date, List<int> 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");
|
||||
}
|
||||
|
@ -16,7 +16,13 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Дата и время</div>
|
||||
<div class="col-8">
|
||||
<input type="datetime-local" placeholder="Введите дату" name="consultationDate" id="consultationDate">
|
||||
<input type="datetime-local" placeholder="Введите дату" name="date" id="date">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Номер дела</div>
|
||||
<div class="col-8">
|
||||
<select id="caseId" name="caseId" class="form-control" asp-items="@(new SelectList(@ViewBag.Cases,"Id", "Id"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user