diff --git a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs index fd060dc..3b6289d 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs @@ -80,7 +80,7 @@ namespace PolyclinicWebAppSuretor.Controllers } [HttpGet] [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") { @@ -94,7 +94,7 @@ namespace PolyclinicWebAppSuretor.Controllers { Id = id, Name = name, - Comment = comment ?? string.Empty, + Comment = comment, DateStartProcedure = dateStart, DateStopProcedure = dateStop };