Category: C# .Net
-
Accessing Data in a Model Binder
In this post I discussed creating a custom Model Binder. The next question I had was, “how can I access my database in that binder?” Before you spend hours beating your head against the wall, let me just say that it’s pretty easy. I’m going to assume that you have something like this in your…
-
Model Binding
There are a plethora of examples for model binding and, like most examples, they are run through the complicator. So here is the short version. Model binding is the idea of taking the data that is passed into an API call and massaging it into a form that is expected by the API handler. This…