public async Task <IActionResult> MarkAsCompleted(int todoTaskId) { var result = await _todoTaskService.MarkAsCompletedAsync(todoTaskId); var response = new ApiResponse <bool>(); response.Code = result?200:404; response.Data = result; response.ErrorMessage = ""; return(new JsonResult(response)); }