public async Task <ActionResult> EditProduct([FromQuery] ProductIdRequestDto idRequestDto, [FromBody] ProductRequestDto productDto) { productDto.Id = idRequestDto.Id; await productsInteractor.EditProduct(productDto); return(Ok()); }
public async Task <ActionResult> EditProductState([FromBody] ProductIdRequestDto idRequestDto) { await productsInteractor.EditProductState(idRequestDto.Id); return(Ok()); }
public async Task <ActionResult <IProduct> > GetProducts([FromQuery] ProductIdRequestDto idRequestDto) { var products = await productsInteractor.GetProducts(idRequestDto.Id); return(Ok(products)); }