public async Task <EmptyResult> Handle(SaveGroceriesCommand request)
        {
            await _groceriesLogic.Save(request.Groceries);

            return(new EmptyResult());
        }
Exemplo n.º 2
0
 public IActionResult Save([FromBody] Groceries groceries)
 {
     _groceriesLogic.Save(groceries);
     return(Ok());
 }