public ActionResult GetAuctionListData() { dynamic auctionList = 0; try { if (ModelState.IsValid) { AuctionServiceClient service = new AuctionServiceClient(); auctionList = service.GetAuctionListData(); //var jsonData = new //{ // total = 1, // page = 1, // // records = dc.Vehicles.ToList().Count, // rows = test //}; } } catch (Exception ex) { ModelState.AddModelError("error", "Something Wrong"); auctionList = null; throw ex; } return(Json(auctionList, JsonRequestBehavior.AllowGet)); //return Json(null, JsonRequestBehavior.AllowGet); // return Json(listVehicles, JsonRequestBehavior.AllowGet); }