diff --git a/ServiceHost/Areas/Client/Controllers/FineController.cs b/ServiceHost/Areas/Client/Controllers/FineController.cs index c06f90d7..d6233699 100644 --- a/ServiceHost/Areas/Client/Controllers/FineController.cs +++ b/ServiceHost/Areas/Client/Controllers/FineController.cs @@ -70,6 +70,7 @@ public class FineController:ClientBaseController [HttpPost("subject/{id:long}")] public ActionResult CreateSubject(CreateFineSubjectViewModel command) { + command.WorkshopId = _workshopId; var res = _fineSubjectApplication.Create(command); return res; } @@ -77,6 +78,7 @@ public class FineController:ClientBaseController [HttpPut("subject/{id:long}")] public ActionResult EditSubject(EditFineSubjectViewModel command) { + command.WorkshopId = _workshopId; var res = _fineSubjectApplication.Edit(command); return res; }