Created static object provider + added some properties
This commit is contained in:
@@ -3,11 +3,14 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace HopFrame.Web.Admin.Models;
|
||||
|
||||
public class AdminPage<TModel> : IAdminPageEntry {
|
||||
public sealed class AdminPage<TModel> : AdminPage;
|
||||
|
||||
public class AdminPage {
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public AdminPagePermissions Permissions { get; set; }
|
||||
public IList<AdminPageProperty> Properties { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public Type RepositoryProvider { get; set; }
|
||||
|
||||
@@ -18,5 +21,3 @@ public class AdminPage<TModel> : IAdminPageEntry {
|
||||
public bool ShowDeleteButton { get; set; } = true;
|
||||
public bool ShowUpdateButton { get; set; } = true;
|
||||
}
|
||||
|
||||
public interface IAdminPageEntry;
|
||||
|
||||
Reference in New Issue
Block a user