Skip to content

Commit f11b290

Browse files
committed
Merge pull request #82 from jawadaspose/master
New MVC Plugin Added
2 parents ca39abc + 901c8f6 commit f11b290

35 files changed

+28425
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace ExportContentToImage
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
15+
"~/Scripts/jquery-ui-{version}.js"));
16+
17+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
18+
"~/Scripts/jquery.unobtrusive*",
19+
"~/Scripts/jquery.validate*"));
20+
21+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
22+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
23+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
24+
"~/Scripts/modernizr-*"));
25+
26+
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
27+
28+
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
29+
"~/Content/themes/base/jquery.ui.core.css",
30+
"~/Content/themes/base/jquery.ui.resizable.css",
31+
"~/Content/themes/base/jquery.ui.selectable.css",
32+
"~/Content/themes/base/jquery.ui.accordion.css",
33+
"~/Content/themes/base/jquery.ui.autocomplete.css",
34+
"~/Content/themes/base/jquery.ui.button.css",
35+
"~/Content/themes/base/jquery.ui.dialog.css",
36+
"~/Content/themes/base/jquery.ui.slider.css",
37+
"~/Content/themes/base/jquery.ui.tabs.css",
38+
"~/Content/themes/base/jquery.ui.datepicker.css",
39+
"~/Content/themes/base/jquery.ui.progressbar.css",
40+
"~/Content/themes/base/jquery.ui.theme.css"));
41+
}
42+
}
43+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace ExportContentToImages
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace ExportContentToImages
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web.Http;
5+
6+
namespace ExportContentToImages
7+
{
8+
public static class WebApiConfig
9+
{
10+
public static void Register(HttpConfiguration config)
11+
{
12+
config.Routes.MapHttpRoute(
13+
name: "DefaultApi",
14+
routeTemplate: "api/{controller}/{id}",
15+
defaults: new { id = RouteParameter.Optional }
16+
);
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)