-
Notifications
You must be signed in to change notification settings - Fork 0
/
BlogController.generated.cs
106 lines (91 loc) · 4.1 KB
/
BlogController.generated.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// <auto-generated />
// This file was generated by a T4 template.
// Don't change it directly as your change would get overwritten. Instead, make changes
// to the .tt file (i.e. the T4 template) and save it to regenerate this file.
// Make sure the compiler doesn't complain about missing Xml comments
#pragma warning disable 1591
#region T4MVC
using System;
using System.Diagnostics;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Hosting;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using T4MVC;
namespace Website.Controllers {
public partial class BlogController {
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public BlogController() { }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
protected BlogController(Dummy d) { }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
protected RedirectToRouteResult RedirectToAction(ActionResult result) {
var callInfo = result.GetT4MVCResult();
return RedirectToRoute(callInfo.RouteValueDictionary);
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public System.Web.Mvc.ActionResult Index() {
return new T4MVC_ActionResult(Area, Name, ActionNames.Index);
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public System.Web.Mvc.ActionResult Post() {
return new T4MVC_ActionResult(Area, Name, ActionNames.Post);
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public System.Web.Mvc.ActionResult Tag() {
return new T4MVC_ActionResult(Area, Name, ActionNames.Tag);
}
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public BlogController Actions { get { return MVC.Blog; } }
[GeneratedCode("T4MVC", "2.0")]
public readonly string Area = "";
[GeneratedCode("T4MVC", "2.0")]
public readonly string Name = "Blog";
static readonly ActionNamesClass s_actions = new ActionNamesClass();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ActionNamesClass ActionNames { get { return s_actions; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ActionNamesClass {
public readonly string Index = "Index";
public readonly string Post = "Post";
public readonly string Tag = "Tag";
}
static readonly ViewNames s_views = new ViewNames();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ViewNames Views { get { return s_views; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ViewNames {
public readonly string Index = "~/Views/Blog/Index.cshtml";
}
}
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class T4MVC_BlogController: Website.Controllers.BlogController {
public T4MVC_BlogController() : base(Dummy.Instance) { }
public override System.Web.Mvc.ActionResult Index(string blogName) {
var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Index);
callInfo.RouteValueDictionary.Add("blogName", blogName);
return callInfo;
}
public override System.Web.Mvc.ActionResult Post(string id) {
var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Post);
callInfo.RouteValueDictionary.Add("id", id);
return callInfo;
}
public override System.Web.Mvc.ActionResult Tag(string blogName, string tag) {
var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Tag);
callInfo.RouteValueDictionary.Add("blogName", blogName);
callInfo.RouteValueDictionary.Add("tag", tag);
return callInfo;
}
}
}
#endregion T4MVC
#pragma warning restore 1591