|
@@ -162,10 +162,20 @@ namespace GxPress.Api.WebControllers
|
|
|
|
|
|
|
|
|
|
|
|
- [HttpPut("clear-draft")]
|
|
|
- public async Task<bool> ClearDraftAsync([FromQuery] int typeValue)
|
|
|
+ [HttpPut("clear-draft/{typeValue}")]
|
|
|
+ public async Task<bool> ClearDraftAsync(int typeValue)
|
|
|
{
|
|
|
return await noteRepository.ClearDraftAsync(_loginContext.AccountId, typeValue);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ [HttpDelete("draft/{id}")]
|
|
|
+ public async Task<bool> DraftDeleteAsync(int id)
|
|
|
+ {
|
|
|
+ return await _noteService.DraftDeleteAsync(id);
|
|
|
+ }
|
|
|
}
|
|
|
}
|