public JsonResult GetPaymentMethodsByPriceList(Guid priceListId) { var httpClient = GetHttpClient(); var priceList = PriceListService.QueryPriceList(httpClient, priceListId); if (priceList == null) { return(Json(null, JsonRequestBehavior.AllowGet)); } var paymentMehods = PaymentMethodService.QueryPaymentMethodsByCategory(httpClient, priceList.PaymentMethods); return(Json(paymentMehods, JsonRequestBehavior.AllowGet)); }