Ejemplo n.º 1
0
        public IHttpActionResult GetPreparationPriceListDetailByCategory(object obj)
        {
            try
            {
                Bis.PreparationPriceListDetailMethod    BisPreparationPriceListDetail = new Bis.PreparationPriceListDetailMethod();
                ViewModel.tblPreparationPriceListDetail get = new ViewModel.tblPreparationPriceListDetail();

                JObject JsonObject = JObject.Parse(obj.ToString());
                get.IDPreparationPriceList = JsonObject["IDPreparationPriceList"].ToString().StringToGuid();
                JArray JsonPreparationPriceList = BisPreparationPriceListDetail.GetPreparationPriceListDetailByCategory(get);
                return(Ok(JsonPreparationPriceList));
            }
            catch
            {
                return(NotFound());
            }
        }
Ejemplo n.º 2
0
 public IHttpActionResult IncreaseAllEndUserPriceForWithOutCategory(object obj)
 {
     Bis.PreparationPriceListDetailMethod BisPreparationPriceListDetail = new Bis.PreparationPriceListDetailMethod();
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblPreparationPriceListDetail update = JsonObject.ToObject <ViewModel.tblPreparationPriceListDetail>();
         bool ret = BisPreparationPriceListDetail.IncreaseAllEndUserPriceForWithOutCategory(update);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Ejemplo n.º 3
0
 public IHttpActionResult UpdateQoutationDetainInPreparationPriceListDetail(object obj)
 {
     Bis.PreparationPriceListDetailMethod BisPreparationPriceListDetail = new Bis.PreparationPriceListDetailMethod();
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblPreparationPriceListDetail update = JsonObject.ToObject <ViewModel.tblPreparationPriceListDetail>();
         bool ret = BisPreparationPriceListDetail.UpdateQoutationDetainInPreparationPriceListDetail(update);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception e)
     {
         return(NotFound());
     }
 }