public async Task <IActionResult> DeleteAsync(int id) { Boolean check = await _ActionsService.DeleteAsync(id); if (check == false) { return(BadRequest(new { err = "刪除錯誤" })); } return(Ok(new { msg = "刪除成功" })); }