public AddSaleCommandHandlerTest() { request = new AddSaleCommand(new SaleResource() { CityName = "add", Price = 120, ProductId = "1", ProductName = "add", UserName = "******" }); }
public async Task <ActionResult <AddSaleResponse> > Add([FromBody] AddSaleCommand data) { return(Ok(await Mediator.Send(data))); }
public async Task <AddSaleCommandResult> Post([FromBody] AddSaleCommand command) { return(await mediator.Send(command)); }