public string Get(string guid) { IScraper scraper = m_scraperService.GetScraper(guid); if (scraper == null) { var error = new LexicalAnalyzer.Models.Error(); error.Message = "Could not find Scraper with the given GUID"; return(JsonConvert.SerializeObject(error)); } return(JsonConvert.SerializeObject(scraper)); }