public async Task <IActionResult> GetSubcategories([FromBody] PaginationAndFilteringPropscs props, Guid catId) { var subcategories = await _mediator.Send(new SubCatList.Query(props, catId, _envelope)); return(Ok(subcategories)); }
public async Task <IActionResult> GetItems(PaginationAndFilteringPropscs props, Guid subcatId) { var items = await _mediator.Send(new ItemList.Query(subcatId, props, _envelope)); return(Ok(items)); }