Esempio n. 1
0
        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));
        }