public ActionResult Get(int id) { ArtistRepository artistRepository = new ArtistRepository(new yslDataContext()); var artist = artistRepository.ConvertToModel(artistRepository.getArtist(id)); JsonResult jsonResult = new JsonResult(); jsonResult.Data = artist; var result = jsonResult; return result; }