Image storage to the db WIP

This commit is contained in:
TheXamlGuy
2024-07-01 22:33:02 +01:00
parent e913e08f40
commit bacabe771c
6 changed files with 62 additions and 17 deletions
+3 -3
View File
@@ -22,9 +22,9 @@ public class ConfirmCreateItemHandler(IMediator mediator,
Item<(Guid, string, string, IImageDescriptor?)> item = new((id, name, category, imageDescriptor));
publisher.Publish(Created.As(item));
await mediator.Handle<CreateEventArgs<(Guid, string, string,
ItemConfiguration)>, bool>(new CreateEventArgs<(Guid, string, string,
ItemConfiguration)>((id, name, category, itemConfiguration)));
await mediator.Handle<CreateEventArgs<(Guid, string, string, IImageDescriptor?,
ItemConfiguration)>, bool>(new CreateEventArgs<(Guid, string, string, IImageDescriptor?,
ItemConfiguration)>((id, name, category, imageDescriptor, itemConfiguration)));
publisher.Publish(Changed.As<Item>());
}