fix FromRoute
This commit is contained in:
@@ -159,7 +159,7 @@ public class AssignmentsController : ControllerBase
|
|||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
[IgnoreTenant]
|
[IgnoreTenant]
|
||||||
[HttpPost("settlement/supplier/calc/{year:int}/{month:int}")]
|
[HttpPost("settlement/supplier/calc/{year:int}/{month:int}")]
|
||||||
public async Task CalcSettlementSupplier(int year, [FromQuery] int month)
|
public async Task CalcSettlementSupplier([FromRoute] int year, [FromRoute] int month)
|
||||||
{
|
{
|
||||||
if (month is < 1 or > 12)
|
if (month is < 1 or > 12)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user