fix: update HTTP POST routes to include ID parameter for contract actions
This commit is contained in:
@@ -190,7 +190,7 @@ public class institutionContractController : AdminBaseController
|
||||
return new JsonResult(result);
|
||||
}
|
||||
|
||||
[HttpPost("deActive")]
|
||||
[HttpPost("deActive/{id}")]
|
||||
public ActionResult<OperationResult> DeActive(long id, string balance)
|
||||
{
|
||||
var result = new OperationResult();
|
||||
@@ -215,7 +215,7 @@ public class institutionContractController : AdminBaseController
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("active")]
|
||||
[HttpPost("active/{id}")]
|
||||
public ActionResult<OperationResult> IsActive(long id)
|
||||
{
|
||||
var result = _institutionContractApplication.Active(id);
|
||||
@@ -227,7 +227,7 @@ public class institutionContractController : AdminBaseController
|
||||
return result;
|
||||
}
|
||||
|
||||
[HttpPost("sign")]
|
||||
[HttpPost("sign/{id}")]
|
||||
public ActionResult<OperationResult> Sign(long Id)
|
||||
{
|
||||
var result = _institutionContractApplication.Sign(Id);
|
||||
@@ -242,7 +242,7 @@ public class institutionContractController : AdminBaseController
|
||||
});
|
||||
}
|
||||
|
||||
[HttpPost("unsign")]
|
||||
[HttpPost("unsign/{id}")]
|
||||
public ActionResult<OperationResult> UnSign(long Id)
|
||||
{
|
||||
var id = Convert.ToInt64(Id);
|
||||
@@ -263,7 +263,7 @@ public class institutionContractController : AdminBaseController
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("block-contracting-party")]
|
||||
[HttpPost("block-contracting-party/{id}")]
|
||||
public IActionResult OnPostBlockContractingParty(long id)
|
||||
{
|
||||
var result = _contractingPartyApplication.Block(id);
|
||||
@@ -281,7 +281,7 @@ public class institutionContractController : AdminBaseController
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("unblock-contracting-party")]
|
||||
[HttpPost("unblock-contracting-party/{id}")]
|
||||
public IActionResult OnPostUnBlockContractingParty(long id)
|
||||
{
|
||||
var result = _contractingPartyApplication.DisableBlock(id);
|
||||
@@ -581,7 +581,7 @@ public class institutionContractController : AdminBaseController
|
||||
}
|
||||
|
||||
[HttpPost("create/workshop-service-calculator")]
|
||||
public ActionResult<InstitutionPlanViewModel> WorkshopServiceCalculator(CreateWorkshopTemp command)
|
||||
public ActionResult<InstitutionPlanViewModel> WorkshopServiceCalculator([FromBody]CreateWorkshopTemp command)
|
||||
{
|
||||
var workshopTemp = new WorkshopTempViewModel
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user