コード例 #1
0
 public async Task <ApiResponse> Update(TextDto textDto)
 {
     try
     {
         return(new ApiResponse(Status200OK, "Updated text", await _textStore.Update(textDto)));
     }
     catch (InvalidDataException dataException)
     {
         return(new ApiResponse(Status400BadRequest, "Failed to update text"));
     }
 }