update models to use new ModelBase

This commit is contained in:
Shaun Walker
2022-10-26 17:26:46 -04:00
parent 1daa9575db
commit 4499d55464
17 changed files with 18 additions and 247 deletions

View File

@ -6,7 +6,7 @@ namespace Oqtane.Models
/// Permission information for anything in Oqtane.
/// Things in Oqtane are identified as Entities, so anything that can be identified can be described here.
/// </summary>
public class Permission : IAuditable
public class Permission : ModelBase
{
/// <summary>
/// Internal ID storing this information.
@ -52,22 +52,6 @@ namespace Oqtane.Models
/// </summary>
public bool IsAuthorized { get; set; }
#region IAuditable Properties
/// <inheritdoc/>
public string CreatedBy { get; set; }
/// <inheritdoc/>
public DateTime CreatedOn { get; set; }
/// <inheritdoc/>
public string ModifiedBy { get; set; }
/// <inheritdoc/>
public DateTime ModifiedOn { get; set; }
#endregion
/// <summary>
/// Reference to the <see cref="Role"/> based on the <see cref="RoleId"/> - can be nullable.
/// </summary>