public IHttpActionResult GetSumsColumnsOfSupplierPriceListDetail(object obj) { try { Bis.SupplierPriceListDetailMethod BisSupplierPriceListDetail = new Bis.SupplierPriceListDetailMethod(); ViewModel.tblSupplierPriceListDetail getSupplierPriceListDetail = new ViewModel.tblSupplierPriceListDetail(); JObject JsonObject = JObject.Parse(obj.ToString()); getSupplierPriceListDetail.IDSupplierPriceListFile = JsonObject["IDSupplierPriceListFile"].ToString().StringToGuid(); JArray JsonSupplierPriceList = BisSupplierPriceListDetail.GetSumsColumnsOfSupplierPriceListDetail(getSupplierPriceListDetail); return(Ok(JsonSupplierPriceList)); } catch { return(NotFound()); } }
public JArray GetSumsColumnsOfSupplierPriceListDetail(ViewModel.tblSupplierPriceListDetail SupplierPriceListDetail) { return(sqlHelper.ReturnJsonData("sp_tblSupplierPriceListDetail_GetSumsColumns", SupplierPriceListDetail)); }