public Permission(PermissionData data) : base(data.DateCreated, data.DateUpdated, data.DateEnabled, data.DateDeleted) { PermissionId = new PermissionId(data.Id); AppId = new AppId(data.AppId); Name = data.Name; Description = data.Description; }
public Permission(PermissionId permissionId, AppId appId, string name, string description, DateTime dateCreated, DateTime dateUpdated, DateTime dateEnabled, DateTime dateDeleted) : base(dateCreated, dateUpdated, dateEnabled, dateDeleted) { Apply(new PermissionCreated(permissionId, appId, name, description, dateCreated, dateUpdated, dateEnabled, dateDeleted)); }
public Permission(PermissionId permissionId, AppId appId, string name, string description) : this(permissionId, appId, name, description, DateTime.UtcNow, DateTime.UtcNow, DateTime.MaxValue, DateTime.MaxValue) { }