public IActionResult GetSubCategoryByMasterId(int Id) { QueryableBaseResponse <SubCategory> result = null; try { result = _subService.GetSubCategoryByMasterId(Id); if (result.code == ResponseCode.SUCCESS) { return(Ok(result.queryableResponse)); } else { return(BadRequest()); } } catch (Exception) { return(BadRequest()); } }
public IActionResult GetImagesByProductId(int id) { QueryableBaseResponse <ProductImage> result = null; try { result = _productImageService.GetImagesByProductId(id); if (result.code == ResponseCode.SUCCESS) { return(Ok(result.queryableResponse)); } else { return(BadRequest()); } } catch (Exception) { return(BadRequest()); } }