Exemple #1
0
 public object search(string query)
 {
     try
     {
         return(DiscountLoadingMdl.search_discountloadings(query));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #2
0
 public object DiscLoadList()
 {
     try
     {
         return(DiscountLoadingMdl.get_dft_discload());
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #3
0
 // GET: api/Country/
 public dynamic Get(string code)
 {
     try
     {
         return(DiscountLoadingMdl.get_discountloading(code));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #4
0
 public object Check(string code)
 {
     try
     {
         var result = DiscountLoadingMdl.get_discountloading(code);
         return(result != null ? (object)new { state = true, name = result.LDI_NAME } : new { state = false });
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error", exception = e });
     }
 }
Exemple #5
0
        public object save([FromBody] List <MS_SYS_LOADINGS_DISCOUNTS> discountloadings)
        {
            try
            {
                foreach (var cty in discountloadings)
                {
                    DiscountLoadingMdl.save_discountloading(cty);
                }

                return(new { state = true, message = "Discount & Loading Successfully Created" });
            }
            catch (Exception e)
            {
                return(new { state = false, message = "Server Error", exception = e });
            }
        }