예제 #1
0
 public IActionResult GetPhoto(int id)
 {
     try
     {
         return(Ok(_photoManager.GetPhoto(id)));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, "Internal server error" + ex));
     }
 }
예제 #2
0
 public async Task <IActionResult> GetPhoto(int id)
 {
     return(Ok(await _photoManager.GetPhoto(id)));
 }