public IActionResult GetYachtMerchantProduct(int id) { var res = _yachtMerchantProductInventoryService.GetAllProductPricingByProductId(id); if (res.IsSuccessStatusCode) { return(Ok(res)); } return(BadRequest()); }
public IActionResult Search(int id) { try { var result = _yachtMerchantProductInventoryService.GetAllProductPricingByProductId(id); return(this.OkResponse(result)); } catch (Exception ex) { return(this.InternalServerErrorAsync(ex.Message).Result); } }