Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
respekt

steveoh steveoh

🚀
respekt
View GitHub Profile
View ModelStateDictionaryExtensions.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
public static class ModelStateDictionaryExtensions
{
public static IEnumerable<string> ToErrors(this ModelStateDictionary dict)
{
return dict.OrderBy(kvp => kvp.Key)
You can’t perform that action at this time.