示例#1
0
 public IActionResult GetById(int id)
 {
     try
     {
         ItemResponse <UploadedFile> response = new ItemResponse <UploadedFile>();
         response.Item = fileService.GetById(id);
         ResolveFileUrl(response);
         return(Ok(response));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }