// GET: api/Videos public HttpResponseMessage Get() { var vids = dh.GetAllVideos(); List <VideoModel> ret = new List <VideoModel>(); foreach (var item in vids) { ret.Add(Mapper.VideoDomainToApi(item)); } var j = new JavaScriptSerializer(); string str = j.Serialize(ret); return(Request.CreateResponse(HttpStatusCode.OK, str)); }