// GET api/Data public IHttpActionResult Get() { IEnumerable <Site> sites = siteService.All(); IList <SiteViewModel> siteViewModel = new List <SiteViewModel>(); Mapper.Map(sites, siteViewModel); return(Ok(siteViewModel)); }