diff --git a/src/DotNetEd.CoreAdmin/Controllers/CoreAdminDataController.cs b/src/DotNetEd.CoreAdmin/Controllers/CoreAdminDataController.cs index 224f8b2..cb1a20b 100644 --- a/src/DotNetEd.CoreAdmin/Controllers/CoreAdminDataController.cs +++ b/src/DotNetEd.CoreAdmin/Controllers/CoreAdminDataController.cs @@ -410,6 +410,10 @@ private static object GetConvertedPrimaryKey(Type clrType, string id) { convertedPrimaryKey = long.Parse(id); } + else if (clrType.IsEnum) + { + convertedPrimaryKey = Enum.Parse(clrType, id); + } return convertedPrimaryKey; } diff --git a/src/DotNetEd.CoreAdmin/DotNetEd.CoreAdmin.csproj b/src/DotNetEd.CoreAdmin/DotNetEd.CoreAdmin.csproj index c1936c8..f6b6304 100644 --- a/src/DotNetEd.CoreAdmin/DotNetEd.CoreAdmin.csproj +++ b/src/DotNetEd.CoreAdmin/DotNetEd.CoreAdmin.csproj @@ -6,7 +6,7 @@ false false AmplifiAdminPortal - 3.0.4 + 3.0.5 Automagically add an Admin Panel to your .NET 8 web app. Core Admin Panel for ASP.NET Core amplifi