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