public async Task <IActionResult> Delete(Guid id) { var userId = GetUserId(); await _toDoListService.DeleteTask(new DeleteToDoTask() { UserId = userId, TaskId = id }); return(Json(new { success = true })); }