Pues tendrías que incluirlo en el IRequest como un listado, una idea es:
IRequest
public class CreateProductCommand : IRequest { public List<CreateProductItem> Products { get;set;} = new(); public class CreateProductItem { public string Description { get; set; } = default!; public double Price { get; set; } } }
Y en el Handler, iteras la creación del producto.
Pueden haber más formas, pero algo así lo haría yo
Saludos!!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Pues tendrías que incluirlo en el
IRequest
como un listado, una idea es:Y en el Handler, iteras la creación del producto.
Pueden haber más formas, pero algo así lo haría yo
Saludos!!