Example #1
0
        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());
            }
        }
Example #2
0
 public JArray GetSumsColumnsOfSupplierPriceListDetail(ViewModel.tblSupplierPriceListDetail SupplierPriceListDetail)
 {
     return(sqlHelper.ReturnJsonData("sp_tblSupplierPriceListDetail_GetSumsColumns", SupplierPriceListDetail));
 }