├── ModelBinder
├── Views
│ ├── _ViewStart.cshtml
│ ├── Compras
│ │ ├── Index.cshtml
│ │ └── Salvar.cshtml
│ ├── Shared
│ │ └── _Layout.cshtml
│ └── web.config
├── Global.asax
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── Models
│ └── Compras.cs
├── Content
│ └── Site.css
├── packages.config
├── App_Start
│ └── RouteConfig.cs
├── Global.asax.cs
├── Controllers
│ └── ComprasController.cs
├── Binders
│ └── DateTimeBinder.cs
├── Web.Debug.config
├── Web.Release.config
├── Properties
│ └── AssemblyInfo.cs
├── Web.config
├── ModelBinder.csproj
└── Scripts
│ ├── bootstrap.min.js
│ └── modernizr-2.6.2.js
├── packages
├── jQuery.1.10.2
│ ├── jQuery.1.10.2.nupkg
│ └── Tools
│ │ ├── install.ps1
│ │ ├── uninstall.ps1
│ │ └── common.ps1
├── Modernizr.2.6.2
│ ├── Modernizr.2.6.2.nupkg
│ └── Tools
│ │ ├── uninstall.ps1
│ │ ├── install.ps1
│ │ └── common.ps1
├── bootstrap.3.0.0
│ ├── bootstrap.3.0.0.nupkg
│ └── content
│ │ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ └── glyphicons-halflings-regular.woff
│ │ └── Scripts
│ │ └── bootstrap.min.js
├── repositories.config
├── Microsoft.AspNet.Mvc.5.2.0
│ ├── lib
│ │ └── net45
│ │ │ └── System.Web.Mvc.dll
│ ├── Microsoft.AspNet.Mvc.5.2.0.nupkg
│ └── Content
│ │ ├── Web.config.uninstall.xdt
│ │ └── Web.config.install.xdt
├── Microsoft.AspNet.Razor.3.2.0
│ ├── lib
│ │ └── net45
│ │ │ └── System.Web.Razor.dll
│ └── Microsoft.AspNet.Razor.3.2.0.nupkg
├── Microsoft.AspNet.WebPages.3.2.0
│ ├── lib
│ │ └── net45
│ │ │ ├── System.Web.Helpers.dll
│ │ │ ├── System.Web.WebPages.dll
│ │ │ ├── System.Web.WebPages.Razor.dll
│ │ │ ├── System.Web.WebPages.Deployment.dll
│ │ │ ├── System.Web.WebPages.Deployment.xml
│ │ │ └── System.Web.WebPages.Razor.xml
│ ├── Microsoft.AspNet.WebPages.3.2.0.nupkg
│ └── Content
│ │ ├── Web.config.uninstall.xdt
│ │ └── Web.config.install.xdt
└── Microsoft.Web.Infrastructure.1.0.0.0
│ ├── Microsoft.Web.Infrastructure.1.0.0.0.nupkg
│ └── lib
│ └── net40
│ └── Microsoft.Web.Infrastructure.dll
├── README.md
├── ModelBinder.sln
├── .gitattributes
└── .gitignore
/ModelBinder/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
--------------------------------------------------------------------------------
/ModelBinder/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="ModelBinder.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/packages/jQuery.1.10.2/jQuery.1.10.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chasoliveira/ModelBinder/master/packages/jQuery.1.10.2/jQuery.1.10.2.nupkg
--------------------------------------------------------------------------------
/packages/Modernizr.2.6.2/Modernizr.2.6.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chasoliveira/ModelBinder/master/packages/Modernizr.2.6.2/Modernizr.2.6.2.nupkg
--------------------------------------------------------------------------------
/packages/bootstrap.3.0.0/bootstrap.3.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chasoliveira/ModelBinder/master/packages/bootstrap.3.0.0/bootstrap.3.0.0.nupkg
--------------------------------------------------------------------------------
/ModelBinder/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chasoliveira/ModelBinder/master/ModelBinder/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/ModelBinder/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chasoliveira/ModelBinder/master/ModelBinder/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ModelBinder
2 | Binder Nullable values
3 |
4 | How get null values from a post, in ASP.NET MVC?
5 |
6 | In this project I show one way to do it.
7 |
--------------------------------------------------------------------------------
/ModelBinder/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chasoliveira/ModelBinder/master/ModelBinder/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
11 | @Html.ActionLink("Create New", "Index") 12 |
13 || 16 | @Html.DisplayNameFor(model => model.Data) 17 | | 18 |
|---|
| 24 | @Html.DisplayFor(modelItem => item.Data) 25 | | 26 |