public IHttpActionResult Get(string campaignRef) { var item = _repository.FindByExternal(campaignRef); var spots = item as IList <Spot> ?? item.ToList(); if (!spots.Any()) { return(NotFound()); } return(Ok(spots)); }