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