изменение визита
This commit is contained in:
parent
42f08cd7a1
commit
aa8c8c9c06
@ -65,10 +65,11 @@ namespace LawFirmExecutorApp.Controllers
|
||||
[HttpGet]
|
||||
public IActionResult UpdateVisit()
|
||||
{
|
||||
ViewBag.Hearings = APIClient.GetRequest<List<HearingViewModel>>($"api/hearing/gethearinglist?guarantorid=2");
|
||||
return View();
|
||||
}
|
||||
[HttpPost]
|
||||
public void UpdateVisit(int id, DateTime date)
|
||||
public void UpdateVisit(int id, DateTime date, int hearingId)
|
||||
{
|
||||
if (APIClient.Executor == null)
|
||||
{
|
||||
@ -81,7 +82,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
Id = id,
|
||||
ExecutorId = APIClient.Executor.Id,
|
||||
VisitDate = date,
|
||||
|
||||
HearingId = hearingId,
|
||||
});
|
||||
Response.Redirect("/Home/Visits");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user