Squash ASP.NET MVC ModelState Errors into a String or JSON

Once ASP.NET MVC has done all of the hard work of validating a model for you, you may find yourself wanting to squash the ModelState values into a string or JSON object. Because of the hierarchy, it might not be obvious at first glance how to do this, so your best bet would be to […]

Visual Studio

Visual Studio Code Keyboard Shortcuts

Visual Studio Code as a whole bunch of keyboard short-cuts, but it is inevitable that you will want to customise them. Luckily, it is quite easy to do. You can create a keybindings.json to store overrides. This file must be placed in the Users folder inside the Code directory (see below for a quick way […]