public async Task <IActionResult> Create(ProBasket catalog, CancellationToken cancellation) { var command = new CreateProBasket(catalog); var result = await mediator.Send(command); if (result != null) { return(Ok(result)); } return(BadRequest("Try again")); }
public Task <IEnumerable <ProBasketDto> > Handle(CreateProBasket request, CancellationToken cancellationToken) { throw new System.NotImplementedException(); }