public IActionResult GetYachtMerchantProduct(int id)
        {
            var res = _yachtMerchantProductInventoryService.GetAllProductPricingByProductId(id);

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