public void TestPayloadViewModelMappings() { var repo = new PayloadTestRepository(); // var vm = repo.GetProductViewModel("foo"); //var json = JsonConvert.SerializeObject(vm); //Console.WriteLine(json); }
public ActionResult Index() { var repo = new PayloadTestRepository(); var path = Server.MapPath("/"); var vm = repo.GetProductViewModel(path, "foobar"); return(View(vm)); }