Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Grand.Web.Vendor.Extensions;
public static class ModelStateExtensions
{
public static string GetErrors(this ModelStateDictionary modelState)
{
var errors = modelState.Values
.SelectMany(v => v.Errors)
.Select(e => e.ErrorMessage)
.ToList();
return string.Join(Environment.NewLine, errors);
}
}