Skip to content
This repository
Browse code

Merge pull request #512 from NuGet/tab-completion

Packages tab completion info API
  • Loading branch information...
commit 764a1f2c9ac43f3cf8ae7b37b0be59d9951ca02f 2 parents 3064088 + 2ac072b
Drew Miller authored June 12, 2012

Showing 25 changed files with 465 additions and 414 deletions. Show diff stats Hide diff stats

  1. 6  Facts/Controllers/CuratedPackagesControllerFacts.cs
  2. 26  Website/ApiController.generated.cs
  3. 6  Website/App_Start/ContainerBindings.cs
  4. 20  Website/App_Start/Routes.cs
  5. 2  Website/Constants.cs
  6. 31  Website/Controllers/ApiController.cs
  7. 2  Website/Controllers/AppController.cs
  8. 6  Website/Controllers/CuratedFeedsController.cs
  9. 12  Website/Controllers/CuratedPackagesController.cs
  10. 82  Website/CuratedFeedsController.generated.cs
  11. 122  Website/CuratedPackagesController.generated.cs
  12. 48  Website/HelpersController.generated.cs
  13. 32  Website/Infrastructure/JsonNetResult.cs
  14. 16  Website/JsonApiController.generated.cs
  15. 144  Website/PackagesController.generated.cs
  16. 31  Website/PagesController.generated.cs
  17. 49  Website/Queries/PackageIdsQuery.cs
  18. 5  Website/Queries/PackageRegistrationByIdQuery.cs
  19. 43  Website/Queries/PackageVersionsQuery.cs
  20. 21  Website/SharedController.generated.cs
  21. 7  Website/T4MVC.cs
  22. 115  Website/UsersController.generated.cs
  23. 2  Website/Views/CuratedPackages/CreateCuratedPackageForm.cshtml
  24. 50  Website/Website.csproj
  25. 1  Website/packages.config
6  Facts/Controllers/CuratedPackagesControllerFacts.cs
@@ -101,7 +101,7 @@ public void WillPushTheCuratedFeedNameIntoTheViewBagAndShowTheCreateCuratedPacka
101 101
             {
102 102
                 var controller = new TestableCuratedPackagesController();
103 103
                 controller.StubCuratedFeed.Name = "theCuratedFeedName";
104  
-                controller.StubPackageRegistrationByIdQry.Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>())).Returns((PackageRegistration)null);
  104
+                controller.StubPackageRegistrationByIdQry.Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<bool>())).Returns((PackageRegistration)null);
105 105
 
106 106
                 var result = controller.PostCuratedPackages("aFeedName", new CreateCuratedPackageRequest()) as ViewResult;
107 107
 
@@ -150,7 +150,7 @@ public void WillShowAnErrorWhenThePackageHasAlreadyBeenCurated()
150 150
                 var controller = new TestableCuratedPackagesController();
151 151
                 controller.StubCuratedFeed.Name = "theCuratedFeedName";
152 152
                 controller.StubCuratedFeed.Packages.Add(new CuratedPackage{ PackageRegistration  = new PackageRegistration{ Key = 42 } });
153  
-                controller.StubPackageRegistrationByIdQry.Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>())).Returns((new PackageRegistration{ Key = 42 }));
  153
+                controller.StubPackageRegistrationByIdQry.Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<bool>())).Returns((new PackageRegistration { Key = 42 }));
154 154
 
155 155
                 var result = controller.PostCuratedPackages("theCuratedFeedName", new CreateCuratedPackageRequest()) as ViewResult;
156 156
 
@@ -168,7 +168,7 @@ public TestableCuratedPackagesController()
168 168
                         .Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>()))
169 169
                         .Returns(StubCuratedFeed);
170 170
                     StubPackageRegistrationByIdQry
171  
-                        .Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>()))
  171
+                        .Setup(stub => stub.Execute(It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<bool>()))
172 172
                         .Returns(StubPackageRegistration);
173 173
                 }
174 174
             }
26  Website/ApiController.generated.cs
@@ -61,6 +61,16 @@ public partial class ApiController {
61 61
         public System.Web.Mvc.ActionResult PublishPackage() {
62 62
             return new T4MVC_ActionResult(Area, Name, ActionNames.PublishPackage);
63 63
         }
  64
+        [NonAction]
  65
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  66
+        public System.Web.Mvc.ActionResult GetPackageIds() {
  67
+            return new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageIds);
  68
+        }
  69
+        [NonAction]
  70
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  71
+        public System.Web.Mvc.ActionResult GetPackageVersions() {
  72
+            return new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageVersions);
  73
+        }
64 74
 
65 75
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
66 76
         public ApiController Actions { get { return MVC.Api; } }
@@ -81,6 +91,8 @@ public class ActionNamesClass {
81 91
             public readonly string CreatePackagePost = "PushPackageApi";
82 92
             public readonly string DeletePackage = "DeletePackageApi";
83 93
             public readonly string PublishPackage = "PublishPackageApi";
  94
+            public readonly string GetPackageIds = "PackageIDs";
  95
+            public readonly string GetPackageVersions = "PackageVersions";
84 96
         }
85 97
 
86 98
 
@@ -144,6 +156,20 @@ public class T4MVC_ApiController: NuGetGallery.ApiController {
144 156
             return callInfo;
145 157
         }
146 158
 
  159
+        public override System.Web.Mvc.ActionResult GetPackageIds(string partialId, bool? includePrerelease) {
  160
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageIds);
  161
+            callInfo.RouteValueDictionary.Add("partialId", partialId);
  162
+            callInfo.RouteValueDictionary.Add("includePrerelease", includePrerelease);
  163
+            return callInfo;
  164
+        }
  165
+
  166
+        public override System.Web.Mvc.ActionResult GetPackageVersions(string id, bool? includePrerelease) {
  167
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetPackageVersions);
  168
+            callInfo.RouteValueDictionary.Add("id", id);
  169
+            callInfo.RouteValueDictionary.Add("includePrerelease", includePrerelease);
  170
+            return callInfo;
  171
+        }
  172
+
147 173
     }
148 174
 }
149 175
 
6  Website/App_Start/ContainerBindings.cs
@@ -207,6 +207,12 @@ public override void Load()
207 207
             Bind<IUserByUsernameQuery>()
208 208
                 .To<UserByUsernameQuery>()
209 209
                 .InRequestScope();
  210
+            Bind<IPackageIdsQuery>()
  211
+                .To<PackageIdsQuery>()
  212
+                .InRequestScope();
  213
+            Bind<IPackageVersionsQuery>()
  214
+                .To<PackageVersionsQuery>()
  215
+                .InRequestScope();
210 216
         }
211 217
     }
212 218
 }
20  Website/App_Start/Routes.cs
@@ -100,22 +100,22 @@ public static void RegisterRoutes(RouteCollection routes)
100 100
             routes.MapRoute(
101 101
                 RouteName.CuratedFeed,
102 102
                 "curated-feeds/{name}",
103  
-                new { controller = CuratedFeedsController.Name, action = "CuratedFeed" });
  103
+                new { controller = CuratedFeedsController.ControllerName, action = "CuratedFeed" });
104 104
 
105 105
             routes.MapRoute(
106 106
                 RouteName.CreateCuratedPackageForm,
107 107
                 "forms/add-package-to-curated-feed",
108  
-                new { controller = CuratedPackagesController.Name, action = "CreateCuratedPackageForm" });
  108
+                new { controller = CuratedPackagesController.ControllerName, action = "CreateCuratedPackageForm" });
109 109
 
110 110
             routes.MapRoute(
111 111
                 RouteName.CuratedPackage,
112 112
                 "curated-feeds/{curatedFeedName}/curated-packages/{curatedPackageId}",
113  
-                new { controller = CuratedPackagesController.Name, action = "CuratedPackage" });
  113
+                new { controller = CuratedPackagesController.ControllerName, action = "CuratedPackage" });
114 114
 
115 115
             routes.MapRoute(
116 116
                 RouteName.CuratedPackages,
117 117
                 "curated-feeds/{curatedFeedName}/curated-packages",
118  
-                new { controller = CuratedPackagesController.Name, action = "CuratedPackages" });
  118
+                new { controller = CuratedPackagesController.ControllerName, action = "CuratedPackages" });
119 119
 
120 120
             // TODO : Most of the routes are essentially of the format api/v{x}/*. We should refactor the code to vary them by the version.
121 121
             // V1 Routes
@@ -198,6 +198,16 @@ public static void RegisterRoutes(RouteCollection routes)
198 198
                 defaults: null,
199 199
                 constraints: new { httpMethod = new HttpMethodConstraint("DELETE") });
200 200
 
  201
+            routes.MapRoute(
  202
+	            "v2PackageIds",
  203
+	            "api/v2/package-ids",
  204
+	            MVC.Api.GetPackageIds());
  205
+
  206
+            routes.MapRoute(
  207
+	            "v2PackageVersions",
  208
+	            "api/v2/package-versions/{id}",
  209
+	            MVC.Api.GetPackageVersions());
  210
+
201 211
             routes.MapServiceRoute(
202 212
                 RouteName.V2ApiCuratedFeed,
203 213
                 "api/v2/curated-feed",
@@ -239,7 +249,7 @@ public static void RegisterRoutes(RouteCollection routes)
239 249
             //    r => r.MapRoute(
240 250
             //        "EditPackage",
241 251
             //        "Package/Edit/{id}/{version}",
242  
-            //        new { controller = PackagesController.Name, action = "EditPackage" }),
  252
+            //        new { controller = PackagesController.ControllerName, action = "EditPackage" }),
243 253
             //    permanent: true).To(packageVersionActionRoute);
244 254
 
245 255
             routes.Redirect(
2  Website/Constants.cs
@@ -28,8 +28,6 @@ public static class Constants
28 28
         
29 29
         public const string UploadFileNameTemplate = "{0}{1}";
30 30
         public const string UploadsFolderName = "uploads";
31  
-        
32 31
         public const string NuGetCommandLinePackageId = "NuGet.CommandLine";
33  
-
34 32
     }
35 33
 }
31  Website/Controllers/ApiController.cs
... ...
@@ -1,15 +1,18 @@
1 1
 using System;
  2
+using System.Collections.Generic;
  3
+using System.Diagnostics;
2 4
 using System.Globalization;
3 5
 using System.IO;
4 6
 using System.Linq;
5 7
 using System.Net;
  8
+using System.Runtime.Serialization;
6 9
 using System.Web.Mvc;
7 10
 using System.Web.UI;
8 11
 using NuGet;
9 12
 
10 13
 namespace NuGetGallery
11 14
 {
12  
-    public partial class ApiController : Controller
  15
+	public partial class ApiController : AppController
13 16
     {
14 17
         private readonly IPackageService packageSvc;
15 18
         private readonly IUserService userSvc;
@@ -30,8 +33,8 @@ public partial class ApiController : Controller
30 33
         [ActionName("GetPackageApi"), HttpGet] 
31 34
         public virtual ActionResult GetPackage(string id, string version)
32 35
         {
33  
-            // if the version is null, the user is asking for the latest version. Presumably they don't want pre release versions. 
34  
-            // The allow prerelease flag is ignored if both id and version are specified.
  36
+            // if the version is null, the user is asking for the latest version. Presumably they don't want includePrerelease release versions. 
  37
+            // The allow prerelease flag is ignored if both partialId and version are specified.
35 38
             var package = packageSvc.FindPackageByIdAndVersion(id, version, allowPrerelease: false);
36 39
 
37 40
             if (package == null)
@@ -72,7 +75,7 @@ public virtual ActionResult VerifyPackageKey(string apiKey, string id, string ve
72 75
 
73 76
             if (!String.IsNullOrEmpty(id))
74 77
             {
75  
-                // If the id is present, then verify that the user has permission to push for the specific Id \ version combination.
  78
+                // If the partialId is present, then verify that the user has permission to push for the specific Id \ version combination.
76 79
                 var package = packageSvc.FindPackageByIdAndVersion(id, version);
77 80
                 if (package == null)
78 81
                     return new HttpStatusCodeWithBodyResult(HttpStatusCode.NotFound, string.Format(CultureInfo.CurrentCulture, Strings.PackageWithIdAndVersionNotFound, id, version));
@@ -110,7 +113,7 @@ private ActionResult CreatePackageInternal(string apiKey)
110 113
 
111 114
             var packageToPush = ReadPackageFromRequest();
112 115
 
113  
-            // Ensure that the user can push packages for this id.
  116
+            // Ensure that the user can push packages for this partialId.
114 117
             var packageRegistration = packageSvc.FindPackageRegistrationById(packageToPush.Id);
115 118
             if (packageRegistration != null)
116 119
             {
@@ -189,5 +192,23 @@ protected internal virtual IPackage ReadPackageFromRequest()
189 192
 
190 193
             return new ZipPackage(stream);
191 194
         }
  195
+
  196
+        [ActionName("PackageIDs"), HttpGet]
  197
+        public virtual ActionResult GetPackageIds(
  198
+            string partialId,
  199
+            bool? includePrerelease)
  200
+        {
  201
+            var qry = GetService<IPackageIdsQuery>();
  202
+            return new JsonNetResult(qry.Execute(partialId, includePrerelease).ToArray());
  203
+        }
  204
+
  205
+        [ActionName("PackageVersions"), HttpGet]
  206
+        public virtual ActionResult GetPackageVersions(
  207
+            string id,
  208
+            bool? includePrerelease)
  209
+        {
  210
+            var qry = GetService<IPackageVersionsQuery>();
  211
+            return new JsonNetResult(qry.Execute(id, includePrerelease).ToArray());
  212
+        }
192 213
     }
193 214
 }
2  Website/Controllers/AppController.cs
@@ -3,7 +3,7 @@
3 3
 
4 4
 namespace NuGetGallery
5 5
 {
6  
-    public class AppController : Controller
  6
+    public abstract class AppController : Controller
7 7
     {
8 8
         protected virtual IIdentity Identity
9 9
         {
6  Website/Controllers/CuratedFeedsController.cs
@@ -4,12 +4,12 @@
4 4
 namespace NuGetGallery
5 5
 {
6 6
     [Authorize]
7  
-    public class CuratedFeedsController : AppController
  7
+    public partial class CuratedFeedsController : AppController
8 8
     {
9  
-        public const string Name = "CuratedFeeds";
  9
+        public const string ControllerName = "CuratedFeeds";
10 10
 
11 11
         [HttpGet]
12  
-        public ActionResult CuratedFeed(string name)
  12
+        public virtual ActionResult CuratedFeed(string name)
13 13
         {
14 14
             var curatedFeed = GetService<ICuratedFeedByNameQuery>().Execute(name, includePackages: true);
15 15
             if (curatedFeed == null)
12  Website/Controllers/CuratedPackagesController.cs
@@ -4,12 +4,12 @@
4 4
 namespace NuGetGallery
5 5
 {
6 6
     [Authorize]
7  
-    public class CuratedPackagesController : AppController
  7
+    public partial class CuratedPackagesController : AppController
8 8
     {
9  
-        public const string Name = "CuratedPackages";
  9
+        public const string ControllerName = "CuratedPackages";
10 10
 
11 11
         [ActionName("CreateCuratedPackageForm"), HttpGet]
12  
-        public ActionResult GetCreateCuratedPackageForm(string curatedFeedName)
  12
+        public virtual ActionResult GetCreateCuratedPackageForm(string curatedFeedName)
13 13
         {
14 14
             var curatedFeed = GetService<ICuratedFeedByNameQuery>().Execute(curatedFeedName);
15 15
             if (curatedFeed == null)
@@ -23,7 +23,7 @@ public ActionResult GetCreateCuratedPackageForm(string curatedFeedName)
23 23
         }
24 24
 
25 25
         [ActionName("CuratedPackage"), HttpDelete]
26  
-        public ActionResult DeleteCuratedPackage(
  26
+        public virtual ActionResult DeleteCuratedPackage(
27 27
             string curatedFeedName,
28 28
             string curatedPackageId)
29 29
         {
@@ -46,7 +46,7 @@ public ActionResult GetCreateCuratedPackageForm(string curatedFeedName)
46 46
         }
47 47
 
48 48
         [ActionName("CuratedPackage"), AcceptVerbs("patch")]
49  
-        public ActionResult PatchCuratedPackage(
  49
+        public virtual ActionResult PatchCuratedPackage(
50 50
             string curatedFeedName,
51 51
             string curatedPackageId,
52 52
             ModifyCuratedPackageRequest request)
@@ -74,7 +74,7 @@ public ActionResult GetCreateCuratedPackageForm(string curatedFeedName)
74 74
         }
75 75
 
76 76
         [ActionName("CuratedPackages"), HttpPost]
77  
-        public ActionResult PostCuratedPackages(
  77
+        public virtual ActionResult PostCuratedPackages(
78 78
             string curatedFeedName,
79 79
             CreateCuratedPackageRequest request)
80 80
         {
82  Website/CuratedFeedsController.generated.cs
... ...
@@ -0,0 +1,82 @@
  1
+// <auto-generated />
  2
+// This file was generated by a T4 template.
  3
+// Don't change it directly as your change would get overwritten.  Instead, make changes
  4
+// to the .tt file (i.e. the T4 template) and save it to regenerate this file.
  5
+
  6
+// Make sure the compiler doesn't complain about missing Xml comments
  7
+#pragma warning disable 1591
  8
+#region T4MVC
  9
+
  10
+using System;
  11
+using System.Diagnostics;
  12
+using System.CodeDom.Compiler;
  13
+using System.Collections.Generic;
  14
+using System.Linq;
  15
+using System.Runtime.CompilerServices;
  16
+using System.Web;
  17
+using System.Web.Hosting;
  18
+using System.Web.Mvc;
  19
+using System.Web.Mvc.Ajax;
  20
+using System.Web.Mvc.Html;
  21
+using System.Web.Routing;
  22
+using T4MVC;
  23
+namespace NuGetGallery {
  24
+    public partial class CuratedFeedsController {
  25
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  26
+        public CuratedFeedsController() { }
  27
+
  28
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  29
+        protected CuratedFeedsController(Dummy d) { }
  30
+
  31
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  32
+        protected RedirectToRouteResult RedirectToAction(ActionResult result) {
  33
+            var callInfo = result.GetT4MVCResult();
  34
+            return RedirectToRoute(callInfo.RouteValueDictionary);
  35
+        }
  36
+
  37
+        [NonAction]
  38
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  39
+        public System.Web.Mvc.ActionResult CuratedFeed() {
  40
+            return new T4MVC_ActionResult(Area, Name, ActionNames.CuratedFeed);
  41
+        }
  42
+
  43
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  44
+        public CuratedFeedsController Actions { get { return MVC.CuratedFeeds; } }
  45
+        [GeneratedCode("T4MVC", "2.0")]
  46
+        public readonly string Area = "";
  47
+        [GeneratedCode("T4MVC", "2.0")]
  48
+        public readonly string Name = "CuratedFeeds";
  49
+
  50
+        static readonly ActionNamesClass s_actions = new ActionNamesClass();
  51
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  52
+        public ActionNamesClass ActionNames { get { return s_actions; } }
  53
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  54
+        public class ActionNamesClass {
  55
+            public readonly string CuratedFeed = "CuratedFeed";
  56
+        }
  57
+
  58
+
  59
+        static readonly ViewNames s_views = new ViewNames();
  60
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  61
+        public ViewNames Views { get { return s_views; } }
  62
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  63
+        public class ViewNames {
  64
+            public readonly string CuratedFeed = "~/Views/CuratedFeeds/CuratedFeed.cshtml";
  65
+        }
  66
+    }
  67
+
  68
+    [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  69
+    public class T4MVC_CuratedFeedsController: NuGetGallery.CuratedFeedsController {
  70
+        public T4MVC_CuratedFeedsController() : base(Dummy.Instance) { }
  71
+
  72
+        public override System.Web.Mvc.ActionResult CuratedFeed(string name) {
  73
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.CuratedFeed);
  74
+            callInfo.RouteValueDictionary.Add("name", name);
  75
+            return callInfo;
  76
+        }
  77
+
  78
+    }
  79
+}
  80
+
  81
+#endregion T4MVC
  82
+#pragma warning restore 1591
122  Website/CuratedPackagesController.generated.cs
... ...
@@ -0,0 +1,122 @@
  1
+// <auto-generated />
  2
+// This file was generated by a T4 template.
  3
+// Don't change it directly as your change would get overwritten.  Instead, make changes
  4
+// to the .tt file (i.e. the T4 template) and save it to regenerate this file.
  5
+
  6
+// Make sure the compiler doesn't complain about missing Xml comments
  7
+#pragma warning disable 1591
  8
+#region T4MVC
  9
+
  10
+using System;
  11
+using System.Diagnostics;
  12
+using System.CodeDom.Compiler;
  13
+using System.Collections.Generic;
  14
+using System.Linq;
  15
+using System.Runtime.CompilerServices;
  16
+using System.Web;
  17
+using System.Web.Hosting;
  18
+using System.Web.Mvc;
  19
+using System.Web.Mvc.Ajax;
  20
+using System.Web.Mvc.Html;
  21
+using System.Web.Routing;
  22
+using T4MVC;
  23
+namespace NuGetGallery {
  24
+    public partial class CuratedPackagesController {
  25
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  26
+        public CuratedPackagesController() { }
  27
+
  28
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  29
+        protected CuratedPackagesController(Dummy d) { }
  30
+
  31
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  32
+        protected RedirectToRouteResult RedirectToAction(ActionResult result) {
  33
+            var callInfo = result.GetT4MVCResult();
  34
+            return RedirectToRoute(callInfo.RouteValueDictionary);
  35
+        }
  36
+
  37
+        [NonAction]
  38
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  39
+        public System.Web.Mvc.ActionResult GetCreateCuratedPackageForm() {
  40
+            return new T4MVC_ActionResult(Area, Name, ActionNames.GetCreateCuratedPackageForm);
  41
+        }
  42
+        [NonAction]
  43
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  44
+        public System.Web.Mvc.ActionResult DeleteCuratedPackage() {
  45
+            return new T4MVC_ActionResult(Area, Name, ActionNames.DeleteCuratedPackage);
  46
+        }
  47
+        [NonAction]
  48
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  49
+        public System.Web.Mvc.ActionResult PatchCuratedPackage() {
  50
+            return new T4MVC_ActionResult(Area, Name, ActionNames.PatchCuratedPackage);
  51
+        }
  52
+        [NonAction]
  53
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  54
+        public System.Web.Mvc.ActionResult PostCuratedPackages() {
  55
+            return new T4MVC_ActionResult(Area, Name, ActionNames.PostCuratedPackages);
  56
+        }
  57
+
  58
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  59
+        public CuratedPackagesController Actions { get { return MVC.CuratedPackages; } }
  60
+        [GeneratedCode("T4MVC", "2.0")]
  61
+        public readonly string Area = "";
  62
+        [GeneratedCode("T4MVC", "2.0")]
  63
+        public readonly string Name = "CuratedPackages";
  64
+
  65
+        static readonly ActionNamesClass s_actions = new ActionNamesClass();
  66
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  67
+        public ActionNamesClass ActionNames { get { return s_actions; } }
  68
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  69
+        public class ActionNamesClass {
  70
+            public readonly string GetCreateCuratedPackageForm = "CreateCuratedPackageForm";
  71
+            public readonly string DeleteCuratedPackage = "CuratedPackage";
  72
+            public readonly string PatchCuratedPackage = "CuratedPackage";
  73
+            public readonly string PostCuratedPackages = "CuratedPackages";
  74
+        }
  75
+
  76
+
  77
+        static readonly ViewNames s_views = new ViewNames();
  78
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  79
+        public ViewNames Views { get { return s_views; } }
  80
+        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  81
+        public class ViewNames {
  82
+            public readonly string CreateCuratedPackageForm = "~/Views/CuratedPackages/CreateCuratedPackageForm.cshtml";
  83
+        }
  84
+    }
  85
+
  86
+    [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
  87
+    public class T4MVC_CuratedPackagesController: NuGetGallery.CuratedPackagesController {
  88
+        public T4MVC_CuratedPackagesController() : base(Dummy.Instance) { }
  89
+
  90
+        public override System.Web.Mvc.ActionResult GetCreateCuratedPackageForm(string curatedFeedName) {
  91
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.GetCreateCuratedPackageForm);
  92
+            callInfo.RouteValueDictionary.Add("curatedFeedName", curatedFeedName);
  93
+            return callInfo;
  94
+        }
  95
+
  96
+        public override System.Web.Mvc.ActionResult DeleteCuratedPackage(string curatedFeedName, string curatedPackageId) {
  97
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.DeleteCuratedPackage);
  98
+            callInfo.RouteValueDictionary.Add("curatedFeedName", curatedFeedName);
  99
+            callInfo.RouteValueDictionary.Add("curatedPackageId", curatedPackageId);
  100
+            return callInfo;
  101
+        }
  102
+
  103
+        public override System.Web.Mvc.ActionResult PatchCuratedPackage(string curatedFeedName, string curatedPackageId, NuGetGallery.ModifyCuratedPackageRequest request) {
  104
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.PatchCuratedPackage);
  105
+            callInfo.RouteValueDictionary.Add("curatedFeedName", curatedFeedName);
  106
+            callInfo.RouteValueDictionary.Add("curatedPackageId", curatedPackageId);
  107
+            callInfo.RouteValueDictionary.Add("request", request);
  108
+            return callInfo;
  109
+        }
  110
+
  111
+        public override System.Web.Mvc.ActionResult PostCuratedPackages(string curatedFeedName, NuGetGallery.CreateCuratedPackageRequest request) {
  112
+            var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.PostCuratedPackages);
  113
+            callInfo.RouteValueDictionary.Add("curatedFeedName", curatedFeedName);
  114
+            callInfo.RouteValueDictionary.Add("request", request);
  115
+            return callInfo;
  116
+        }
  117
+
  118
+    }
  119
+}
  120
+
  121
+#endregion T4MVC
  122
+#pragma warning restore 1591
48  Website/HelpersController.generated.cs
... ...
@@ -1,48 +0,0 @@
1  
-// <auto-generated />
2  
-// This file was generated by a T4 template.
3  
-// Don't change it directly as your change would get overwritten.  Instead, make changes
4  
-// to the .tt file (i.e. the T4 template) and save it to regenerate this file.
5  
-
6  
-// Make sure the compiler doesn't complain about missing Xml comments
7  
-#pragma warning disable 1591
8  
-#region T4MVC
9  
-
10  
-using System;
11  
-using System.Diagnostics;
12  
-using System.CodeDom.Compiler;
13  
-using System.Collections.Generic;
14  
-using System.Linq;
15  
-using System.Runtime.CompilerServices;
16  
-using System.Web;
17  
-using System.Web.Hosting;
18  
-using System.Web.Mvc;
19  
-using System.Web.Mvc.Ajax;
20  
-using System.Web.Mvc.Html;
21  
-using System.Web.Routing;
22  
-using T4MVC;
23  
-
24  
-
25  
-
26  
-namespace T4MVC {
27  
-
28  
-    public class HelpersController {
29  
-
30  
-
31  
-        static readonly ViewNames s_views = new ViewNames();
32  
-        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
33  
-        public ViewNames Views { get { return s_views; } }
34  
-        [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
35  
-        public class ViewNames {
36  
-public readonly string ViewHelpers = "~/Views/Helpers/ViewHelpers.cshtml";
37  
-
38  
-        }
39  
-    }
40  
-
41  
-
42  
-
43  
-}
44  
-
45  
-
46  
-
47  
-#endregion T4MVC
48  
-#pragma warning restore 1591
32  Website/Infrastructure/JsonNetResult.cs
... ...
@@ -0,0 +1,32 @@
  1
+using System;
  2
+using System.Web.Mvc;
  3
+using Newtonsoft.Json;
  4
+
  5
+namespace NuGetGallery
  6
+{
  7
+    public class JsonNetResult : ActionResult
  8
+    {
  9
+	    private readonly object _data;
  10
+
  11
+	    public JsonNetResult(object data)
  12
+	    {
  13
+		    if (data == null)
  14
+			    throw new ArgumentNullException("data");
  15
+			
  16
+		    _data = data;
  17
+	    }
  18
+
  19
+	    public override void ExecuteResult(ControllerContext context)
  20
+	    {
  21
+		    if (context == null)
  22
+			    throw new ArgumentNullException("context");
  23
+
  24
+		    var response = context.HttpContext.Response;
  25
+		    response.ContentType = "application/json";
  26
+		    var writer = new JsonTextWriter(response.Output);
  27
+		    var serializer = JsonSerializer.Create(new JsonSerializerSettings());
  28
+		    serializer.Serialize(writer, _data);
  29
+		    writer.Flush();
  30
+	    }
  31
+    }
  32
+}
16  Website/JsonApiController.generated.cs
@@ -20,14 +20,8 @@
20 20
 using System.Web.Mvc.Html;
21 21
 using System.Web.Routing;
22 22
 using T4MVC;
23  
-
24  
-
25  
-
26 23
 namespace NuGetGallery {
27  
-
28 24
     public partial class JsonApiController {
29  
-
30  
-
31 25
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
32 26
         protected JsonApiController(Dummy d) { }
33 27
 
@@ -38,7 +32,6 @@ public partial class JsonApiController {
38 32
         }
39 33
 
40 34
 
41  
-
42 35
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
43 36
         public JsonApiController Actions { get { return MVC.JsonApi; } }
44 37
         [GeneratedCode("T4MVC", "2.0")]
@@ -51,32 +44,23 @@ public partial class JsonApiController {
51 44
         public ActionNamesClass ActionNames { get { return s_actions; } }
52 45
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
53 46
         public class ActionNamesClass {
54  
-
55 47
         }
56 48
 
57 49
 
58  
-
59 50
         static readonly ViewNames s_views = new ViewNames();
60 51
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
61 52
         public ViewNames Views { get { return s_views; } }
62 53
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
63 54
         public class ViewNames {
64  
-
65 55
         }
66 56
     }
67 57
 
68  
-
69 58
     [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
70 59
     public class T4MVC_JsonApiController: NuGetGallery.JsonApiController {
71 60
         public T4MVC_JsonApiController() : base(Dummy.Instance) { }
72 61
 
73  
-
74 62
     }
75  
-
76  
-
77 63
 }
78 64
 
79  
-
80  
-
81 65
 #endregion T4MVC
82 66
 #pragma warning restore 1591
144  Website/PackagesController.generated.cs
@@ -20,14 +20,8 @@
20 20
 using System.Web.Mvc.Html;
21 21
 using System.Web.Routing;
22 22
 using T4MVC;
23  
-
24  
-
25  
-
26 23
 namespace NuGetGallery {
27  
-
28 24
     public partial class PackagesController {
29  
-
30  
-
31 25
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
32 26
         protected PackagesController(Dummy d) { }
33 27
 
@@ -37,56 +31,47 @@ public partial class PackagesController {
37 31
             return RedirectToRoute(callInfo.RouteValueDictionary);
38 32
         }
39 33
 
40  
-
41 34
         [NonAction]
42 35
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
43 36
         public System.Web.Mvc.ActionResult DisplayPackage() {
44 37
             return new T4MVC_ActionResult(Area, Name, ActionNames.DisplayPackage);
45 38
         }
46  
-
47 39
         [NonAction]
48 40
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
49 41
         public System.Web.Mvc.ActionResult ListPackages() {
50 42
             return new T4MVC_ActionResult(Area, Name, ActionNames.ListPackages);
51 43
         }
52  
-
53 44
         [NonAction]
54 45
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
55 46
         public System.Web.Mvc.ActionResult ReportAbuse() {
56 47
             return new T4MVC_ActionResult(Area, Name, ActionNames.ReportAbuse);
57 48
         }
58  
-
59 49
         [NonAction]
60 50
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
61 51
         public System.Web.Mvc.ActionResult ContactOwners() {
62 52
             return new T4MVC_ActionResult(Area, Name, ActionNames.ContactOwners);
63 53
         }
64  
-
65 54
         [NonAction]
66 55
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
67 56
         public System.Web.Mvc.ActionResult ManagePackageOwners() {
68 57
             return new T4MVC_ActionResult(Area, Name, ActionNames.ManagePackageOwners);
69 58
         }
70  
-
71 59
         [NonAction]
72 60
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
73 61
         public System.Web.Mvc.ActionResult Delete() {
74 62
             return new T4MVC_ActionResult(Area, Name, ActionNames.Delete);
75 63
         }
76  
-
77 64
         [NonAction]
78 65
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
79 66
         public System.Web.Mvc.ActionResult Edit() {
80 67
             return new T4MVC_ActionResult(Area, Name, ActionNames.Edit);
81 68
         }
82  
-
83 69
         [NonAction]
84 70
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
85 71
         public System.Web.Mvc.ActionResult ConfirmOwner() {
86 72
             return new T4MVC_ActionResult(Area, Name, ActionNames.ConfirmOwner);
87 73
         }
88 74
 
89  
-
90 75
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
91 76
         public PackagesController Actions { get { return MVC.Packages; } }
92 77
         [GeneratedCode("T4MVC", "2.0")]
@@ -99,53 +84,27 @@ public partial class PackagesController {
99 84
         public ActionNamesClass ActionNames { get { return s_actions; } }
100 85
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
101 86
         public class ActionNamesClass {
102  
-
103  
-
104 87
             public readonly string UploadPackage = "UploadPackage";
105  
-
106  
-
107 88
             public readonly string DisplayPackage = "DisplayPackage";
108  
-
109  
-
110 89
             public readonly string ListPackages = "ListPackages";
111  
-
112  
-
113 90
             public readonly string ReportAbuse = "ReportAbuse";
114  
-
115  
-
116 91
             public readonly string ContactOwners = "ContactOwners";
117  
-
118  
-
119 92
             public readonly string Download = "Download";
120  
-
121  
-
122 93
             public readonly string ManagePackageOwners = "ManagePackageOwners";
123  
-
124  
-
125 94
             public readonly string Delete = "Delete";
126  
-
127  
-
128 95
             public readonly string Edit = "Edit";
129  
-
130  
-
131 96
             public readonly string ConfirmOwner = "ConfirmOwner";
132  
-
133  
-
134 97
             public readonly string VerifyPackage = "VerifyPackage";
135  
-
136  
-
137 98
             public readonly string CancelUpload = "CancelUpload";
138  
-
139 99
         }
140 100
 
141 101
 
142  
-
143 102
         static readonly ViewNames s_views = new ViewNames();
144 103
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
145 104
         public ViewNames Views { get { return s_views; } }
146 105
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
147 106
         public class ViewNames {
148  
-public readonly string _ListPackage = "~/Views/Packages/_ListPackage.cshtml";
  107
+            public readonly string _ListPackage = "~/Views/Packages/_ListPackage.cshtml";
149 108
             public readonly string ConfirmOwner = "~/Views/Packages/ConfirmOwner.cshtml";
150 109
             public readonly string ContactOwners = "~/Views/Packages/ContactOwners.cshtml";
151 110
             public readonly string Delete = "~/Views/Packages/Delete.cshtml";
@@ -157,236 +116,135 @@ public class ViewNames {
157 116
             public readonly string ReportAbuse = "~/Views/Packages/ReportAbuse.cshtml";
158 117
             public readonly string UploadPackage = "~/Views/Packages/UploadPackage.cshtml";
159 118
             public readonly string VerifyPackage = "~/Views/Packages/VerifyPackage.cshtml";
160  
-
161 119
         }
162 120
     }
163 121
 
164  
-
165 122
     [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
166 123
     public class T4MVC_PackagesController: NuGetGallery.PackagesController {
167 124
         public T4MVC_PackagesController() : base(Dummy.Instance) { }
168 125
 
169  
-
170 126
         public override System.Web.Mvc.ActionResult UploadPackage() {
171 127
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.UploadPackage);
172  
-
173 128
             return callInfo;
174 129
         }
175 130
 
176  
-
177 131
         public override System.Web.Mvc.ActionResult UploadPackage(System.Web.HttpPostedFileBase uploadFile) {
178 132
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.UploadPackage);
179  
-
180  
-
181 133
             callInfo.RouteValueDictionary.Add("uploadFile", uploadFile);
182  
-
183  
-
184 134
             return callInfo;
185 135
         }
186 136
 
187  
-
188 137
         public override System.Web.Mvc.ActionResult DisplayPackage(string id, string version) {
189 138
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.DisplayPackage);
190  
-
191  
-
192 139
             callInfo.RouteValueDictionary.Add("id", id);
193  
-
194 140
             callInfo.RouteValueDictionary.Add("version", version);
195  
-
196  
-
197 141
             return callInfo;
198 142
         }
199 143
 
200  
-
201 144
         public override System.Web.Mvc.ActionResult ListPackages(string q, string sortOrder, int page) {
202 145
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ListPackages);
203  
-
204  
-
205 146
             callInfo.RouteValueDictionary.Add("q", q);
206  
-
207 147
             callInfo.RouteValueDictionary.Add("sortOrder", sortOrder);
208  
-
209 148
             callInfo.RouteValueDictionary.Add("page", page);
210  
-
211  
-
212 149
             return callInfo;
213 150
         }
214 151
 
215  
-
216 152
         public override System.Web.Mvc.ActionResult ReportAbuse(string id, string version) {
217 153
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ReportAbuse);
218  
-
219  
-
220 154
             callInfo.RouteValueDictionary.Add("id", id);
221  
-
222 155
             callInfo.RouteValueDictionary.Add("version", version);
223  
-
224  
-
225 156
             return callInfo;
226 157
         }
227 158
 
228  
-
229 159
         public override System.Web.Mvc.ActionResult ReportAbuse(string id, string version, NuGetGallery.ReportAbuseViewModel reportForm) {
230 160
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ReportAbuse);
231  
-
232  
-
233 161
             callInfo.RouteValueDictionary.Add("id", id);
234  
-
235 162
             callInfo.RouteValueDictionary.Add("version", version);
236  
-
237 163
             callInfo.RouteValueDictionary.Add("reportForm", reportForm);
238  
-
239  
-
240 164
             return callInfo;
241 165
         }
242 166
 
243  
-
244 167
         public override System.Web.Mvc.ActionResult ContactOwners(string id) {
245 168
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ContactOwners);
246  
-
247  
-
248 169
             callInfo.RouteValueDictionary.Add("id", id);
249  
-
250  
-
251 170
             return callInfo;
252 171
         }
253 172
 
254  
-
255 173
         public override System.Web.Mvc.ActionResult ContactOwners(string id, NuGetGallery.ContactOwnersViewModel contactForm) {
256 174
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ContactOwners);
257  
-
258  
-
259 175
             callInfo.RouteValueDictionary.Add("id", id);
260  
-
261 176
             callInfo.RouteValueDictionary.Add("contactForm", contactForm);
262  
-
263  
-
264 177
             return callInfo;
265 178
         }
266 179
 
267  
-
268 180
         public override System.Web.Mvc.ActionResult Download() {
269 181
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Download);
270  
-
271 182
             return callInfo;
272 183
         }
273 184
 
274  
-
275 185
         public override System.Web.Mvc.ActionResult ManagePackageOwners(string id, string version) {
276 186
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ManagePackageOwners);
277  
-
278  
-
279 187
             callInfo.RouteValueDictionary.Add("id", id);
280  
-
281 188
             callInfo.RouteValueDictionary.Add("version", version);
282  
-
283  
-
284 189
             return callInfo;
285 190
         }
286 191
 
287  
-
288 192
         public override System.Web.Mvc.ActionResult Delete(string id, string version) {
289 193
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Delete);
290  
-
291  
-
292 194
             callInfo.RouteValueDictionary.Add("id", id);
293  
-
294 195
             callInfo.RouteValueDictionary.Add("version", version);
295  
-
296  
-
297 196
             return callInfo;
298 197
         }
299 198
 
300  
-
301 199
         public override System.Web.Mvc.ActionResult Delete(string id, string version, bool? listed) {
302 200
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Delete);
303  
-
304  
-
305 201
             callInfo.RouteValueDictionary.Add("id", id);
306  
-
307 202
             callInfo.RouteValueDictionary.Add("version", version);
308  
-
309 203
             callInfo.RouteValueDictionary.Add("listed", listed);
310  
-
311  
-
312 204
             return callInfo;
313 205
         }
314 206
 
315  
-
316 207
         public override System.Web.Mvc.ActionResult Edit(string id, string version) {
317 208
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Edit);
318  
-
319  
-
320 209
             callInfo.RouteValueDictionary.Add("id", id);
321  
-
322 210
             callInfo.RouteValueDictionary.Add("version", version);
323  
-
324  
-
325 211
             return callInfo;
326 212
         }
327 213
 
328  
-
329 214
         public override System.Web.Mvc.ActionResult Edit(string id, string version, bool? listed) {
330 215
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.Edit);
331  
-
332  
-
333 216
             callInfo.RouteValueDictionary.Add("id", id);
334  
-
335 217
             callInfo.RouteValueDictionary.Add("version", version);
336  
-
337 218
             callInfo.RouteValueDictionary.Add("listed", listed);
338  
-
339  
-
340 219
             return callInfo;
341 220
         }
342 221
 
343  
-
344 222
         public override System.Web.Mvc.ActionResult ConfirmOwner(string id, string username, string token) {
345 223
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.ConfirmOwner);
346  
-
347  
-
348 224
             callInfo.RouteValueDictionary.Add("id", id);
349  
-
350 225
             callInfo.RouteValueDictionary.Add("username", username);
351  
-
352 226
             callInfo.RouteValueDictionary.Add("token", token);
353  
-
354  
-
355 227
             return callInfo;
356 228
         }
357 229
 
358  
-
359 230
         public override System.Web.Mvc.ActionResult VerifyPackage() {
360 231
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.VerifyPackage);
361  
-
362 232
             return callInfo;
363 233
         }
364 234
 
365  
-
366 235
         public override System.Web.Mvc.ActionResult VerifyPackage(bool? listed) {
367 236
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.VerifyPackage);
368  
-
369  
-
370 237
             callInfo.RouteValueDictionary.Add("listed", listed);
371  
-
372  
-
373 238
             return callInfo;
374 239
         }
375 240
 
376  
-
377 241
         public override System.Web.Mvc.ActionResult CancelUpload() {
378 242
             var callInfo = new T4MVC_ActionResult(Area, Name, ActionNames.CancelUpload);
379  
-
380 243
             return callInfo;
381 244
         }
382 245
 
383  
-
384 246
     }
385  
-
386  
-
387 247
 }
388 248
 
389  
-
390  
-
391 249
 #endregion T4MVC
392 250
 #pragma warning restore 1591
31  Website/PagesController.generated.cs
@@ -20,18 +20,11 @@
20 20
 using System.Web.Mvc.Html;
21 21
 using System.Web.Routing;
22 22
 using T4MVC;
23  
-
24  
-
25  
-
26 23
 namespace NuGetGallery {
27  
-
28 24
     public partial class PagesController {
29  
-
30  
-
31 25
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
32 26
         public PagesController() { }
33 27
 
34  
-
35 28
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
36 29
         protected PagesController(Dummy d) { }
37 30
 
@@ -42,7 +35,6 @@ public partial class PagesController {
42 35
         }
43 36
 
44 37
 
45  
-
46 38
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
47 39
         public PagesController Actions { get { return MVC.Pages; } }
48 40
         [GeneratedCode("T4MVC", "2.0")]
@@ -55,65 +47,44 @@ public partial class PagesController {
55 47
         public ActionNamesClass ActionNames { get { return s_actions; } }
56 48
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
57 49
         public class ActionNamesClass {
58  
-
59  
-
60 50
             public readonly string Home = "Home";
61  
-
62  
-
63 51
             public readonly string Terms = "Terms";
64  
-
65  
-
66 52
             public readonly string Privacy = "Privacy";
67  
-
68 53
         }
69 54
 
70 55
 
71  
-
72 56
         static readonly ViewNames s_views = new ViewNames();
73 57
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
74 58
         public ViewNames Views { get { return s_views; } }
75 59
         [GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
76 60
         public class ViewNames {
77  
-public readonly string Home = "~/Views/Pages/Home.cshtml";
  61
+            public readonly string Home = "~/Views/Pages/Home.cshtml";
78 62
             public readonly string Privacy = "~/Views/Pages/Privacy.cshtml";
79 63
             public readonly string Terms = "~/Views/Pages/Terms.cshtml";
80  
-
81 64
         }
82 65
     }
83 66