да я не знаю уже блин

This commit is contained in:
Елена Бакальская 2024-05-27 00:22:48 +04:00
parent 21b9bed09b
commit 13ecdcaecc

View File

@ -80,7 +80,7 @@ namespace PolyclinicWebAppSuretor.Controllers
} }
[HttpGet] [HttpGet]
[HttpPost] [HttpPost]
public IActionResult Edit(int id, string name, string comment, DateTime dateStart, DateTime? dateStop) public IActionResult Edit(int id,string name, string comment, DateTime dateStart, DateTime? dateStop)
{ {
if (HttpContext.Request.Method == "GET") if (HttpContext.Request.Method == "GET")
{ {
@ -94,7 +94,7 @@ namespace PolyclinicWebAppSuretor.Controllers
{ {
Id = id, Id = id,
Name = name, Name = name,
Comment = comment ?? string.Empty, Comment = comment,
DateStartProcedure = dateStart, DateStartProcedure = dateStart,
DateStopProcedure = dateStop DateStopProcedure = dateStop
}; };