set workshopId for FineController.cs
This commit is contained in:
@@ -70,6 +70,7 @@ public class FineController:ClientBaseController
|
||||
[HttpPost("subject/{id:long}")]
|
||||
public ActionResult<OperationResult> 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<OperationResult> EditSubject(EditFineSubjectViewModel command)
|
||||
{
|
||||
command.WorkshopId = _workshopId;
|
||||
var res = _fineSubjectApplication.Edit(command);
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user