public IActionResult UserPhotos(int id) { try { return(Ok(_photoManager.GetPhotos(id))); } catch (Exception ex) { return(StatusCode(500, "Internal server error" + ex)); } }