Ejemplo n.º 1
0
        public ActionResult GetAllSalesData()
        {
            dynamic salesList = 0;

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