=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -9,6 +9,7 @@ namespace adas_core.Domain.Models;
|
||||
/// <remarks>
|
||||
/// Typically used to model operations, commands, or permissions associated with a person entity within a resource-based system.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=ca1fc37 -->
|
||||
public class PersonResourceAction
|
||||
{
|
||||
public ActionsEnum.ResourceAction? Action { get; set; }
|
||||
@@ -22,6 +23,7 @@ public class PersonResourceAction
|
||||
/// </summary>
|
||||
/// <param name="actions">The list of actions to be applied.</param>
|
||||
/// <returns>A <see cref="List{PersonResource}"/> containing the result of applying the actions.</returns>
|
||||
/// <!-- aidoc:v1 sig=1cb6d40 body=22d71fc -->
|
||||
public static List<PersonResource>? Apply(List<PersonResourceAction> actions)
|
||||
{
|
||||
return Apply(null, actions);
|
||||
@@ -34,6 +36,7 @@ public class PersonResourceAction
|
||||
/// <param name="source">The source list of person resources to mutate. If null, an empty list is used.</param>
|
||||
/// <param name="actions">The list of resource actions (add, delete, update) to apply to the source. If null, no actions are applied.</param>
|
||||
/// <returns>The resulting list of person resources after applying the actions, or null if the resulting list is empty.</returns>
|
||||
/// <!-- aidoc:v1 sig=97e8c77 body=f0632c0 -->
|
||||
public static List<PersonResource>? Apply(List<PersonResource>? source, List<PersonResourceAction>? actions)
|
||||
{
|
||||
source ??= [];
|
||||
|
||||
Reference in New Issue
Block a user