Add Remove method to institution contract controller for contract deletion
This commit is contained in:
@@ -192,6 +192,19 @@ public class institutionContractController : AdminBaseController
|
||||
return new JsonResult(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// حذف قرارداد مالی
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("{id}")]
|
||||
public async Task<ActionResult<OperationResult>> Remove(long id)
|
||||
{
|
||||
_institutionContractApplication.RemoveContract(id);
|
||||
return new OperationResult().Succcedded();
|
||||
|
||||
}
|
||||
|
||||
[HttpPost("deActive/{id}")]
|
||||
public ActionResult<OperationResult> DeActive(long id, string balance)
|
||||
{
|
||||
@@ -672,6 +685,8 @@ public class institutionContractController : AdminBaseController
|
||||
|
||||
return operationResult;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class InstitutionPlanCalculatorResponse
|
||||
|
||||
Reference in New Issue
Block a user