Exemplo n.º 1
0
        public ActionResult GetAllSalesPaymentList()
        {
            dynamic salesPaymentList = 0;

            try
            {
                if (ModelState.IsValid)
                {
                    SaleServiceClient service = new SaleServiceClient();
                    salesPaymentList = service.GetAllSalesPaymentList();
                    //return Json(vehicleList, JsonRequestBehavior.AllowGet);
                }
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("error", "Something Went Wrong");
                salesPaymentList = null;
                throw ex;
            }
            return(Json(salesPaymentList, JsonRequestBehavior.AllowGet));
        }