Skip to content

Commit

Permalink
chore: add DateTimeOffset sample for mvc
Browse files Browse the repository at this point in the history
  • Loading branch information
gyankov committed May 26, 2020
1 parent 359bf25 commit d488b0d
Show file tree
Hide file tree
Showing 61 changed files with 61,551 additions and 1,288 deletions.
20 changes: 20 additions & 0 deletions general/DateTimeOffset/KendoUIMVC5.sln
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KendoUIMVC5", "KendoUIMVC5\KendoUIMVC5.csproj", "{F06CAD57-4977-46EB-8CC1-2BC40656BBF8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F06CAD57-4977-46EB-8CC1-2BC40656BBF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F06CAD57-4977-46EB-8CC1-2BC40656BBF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F06CAD57-4977-46EB-8CC1-2BC40656BBF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F06CAD57-4977-46EB-8CC1-2BC40656BBF8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file not shown.
Binary file not shown.
28 changes: 28 additions & 0 deletions general/DateTimeOffset/KendoUIMVC5/App_Start/BundleConfig.cs
@@ -0,0 +1,28 @@
using System.Web;
using System.Web.Optimization;

namespace KendoUIMVC5
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));

// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));

bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));

bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
}
}
13 changes: 13 additions & 0 deletions general/DateTimeOffset/KendoUIMVC5/App_Start/FilterConfig.cs
@@ -0,0 +1,13 @@
using System.Web;
using System.Web.Mvc;

namespace KendoUIMVC5
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
}
}
}
23 changes: 23 additions & 0 deletions general/DateTimeOffset/KendoUIMVC5/App_Start/RouteConfig.cs
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace KendoUIMVC5
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}

0 comments on commit d488b0d

Please sign in to comment.