private string GetModelStateErrors(System.Web.Http.ModelBinding.ModelStateDictionary msd) { var i = 0; var items = msd.Values.SelectMany(v => v.Errors.Select(ve => $"({++i}) {ve.Exception.Message}")); return string.Join(" ", items); }