Command.cs 546 B

1234567891011121314151617181920212223242526
  1. using Application.Abstractions.Messaging;
  2. using SharedKernel.Results;
  3. namespace Application.Features.Admin.Forum.BoardPrefix.Save;
  4. public sealed record Command(
  5. int BoardID,
  6. Command.Create? NewItem,
  7. IReadOnlyList<Command.Update>? Updates,
  8. int[]? DeleteIDs
  9. ) : ICommand<Result>
  10. {
  11. public sealed record Create(
  12. string Name,
  13. string? Color,
  14. short Order
  15. );
  16. public sealed record Update(
  17. int ID,
  18. string Name,
  19. string? Color,
  20. short Order,
  21. bool IsActive
  22. );
  23. }