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

            return(View(vm));
        }