public async Task <IActionResult> SearchById([FromRoute] string photoId, string redisKey) { if (string.IsNullOrWhiteSpace(photoId) || string.IsNullOrWhiteSpace(redisKey)) { return(BadRequest("photoId and redisKey are mandotary fields.")); } var photos = await _flickrService.SearchByPhotoId(photoId, redisKey); return(Ok(photos)); }