Пример #1
0
 public ActionResult TestImagePartialViewWithModel(string id)
 {
     var model = new TestViewModel { DocTitle = id, DocContent = "This is a test with a partial view" };
     return new PartialViewAsImage("TestPartialViewWithModel", model);
 }
Пример #2
0
 public ActionResult TestPartialViewWithModel(string id)
 {
     var model = new TestViewModel { DocTitle = id, DocContent = "This is a test" };
     return new PartialViewAsPdf(model);
 }
Пример #3
0
 public ActionResult TestImageViewWithModel(string id)
 {
     var model = new TestViewModel { DocTitle = id, DocContent = "This is a test" };
     return new ViewAsImage("TestViewWithModel", model);
 }