Example #1
0
 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;
 }