コード例 #1
0
ファイル: TestController.cs プロジェクト: padzikm/CompositeUI
 public ActionResult CustomerDetails()
 {
     var model = new TestUrlModel()
     {
         UrlInvocation = "Url.Action(\"AddCustomer\", new { _external_ = true })",
         GeneratedActionUrl = Url.Action("AddCustomer", new { _external_ = true }),
         ShouldBeActionUrl = "/TestArea/Test/AddCustomer",
         DependencyResult = _importantClass.GenerateText("CustomerDetails"),
     };
     return View(model);
 }
コード例 #2
0
ファイル: TestController.cs プロジェクト: padzikm/CompositeUI
 public ActionResult AddCustomer(object o)
 {
     var model = new TestUrlModel()
     {
         UrlInvocation = "Url.Action(\"AddCustomer\")",
         GeneratedActionUrl = Url.Action("AddCustomer"),
         ShouldBeActionUrl = "/" + OrdersConsts.ServiceName + "/TestArea/Test/AddCustomer",
         DependencyResult = _importantClass.GenerateText("AddCustomer"),
     };
     return Json(model, JsonRequestBehavior.AllowGet);
 }
コード例 #3
0
ファイル: TestController.cs プロジェクト: padzikm/CompositeUI
 public ActionResult Summary(Guid id)
 {
     var model = new TestUrlModel()
     {
         UrlInvocation = "Url.Action(\"CustomersDetails\")",
         GeneratedActionUrl = Url.Action("CustomerDetails"),
         ShouldBeActionUrl = "/" + OrdersConsts.ServiceName + "/TestArea/Test/CustomersDetails",
         DependencyResult = _importantClass.GenerateText("Summary"),
     };
     var vm = new ViewModel(UIKeysAreaTest.Summary.OrdersDiv, p => p.Html.Action("Summary", new { model }));
     return ViewModel(vm);
 }