Exemple #1
0
        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"));
        }
Exemple #2
0
 public Task <IEnumerable <ProBasketDto> > Handle(CreateProBasket request, CancellationToken cancellationToken)
 {
     throw new System.NotImplementedException();
 }