public ActionResult SaveSalesLot(Lots lot) { bool status = false; try { if (ModelState.IsValid) { SaleServiceClient saleServiceClient = new SaleServiceClient(); status = saleServiceClient.SaveSlesLot(lot); //return RedirectToAction("Index"); } } catch (Exception e) { ModelState.AddModelError("error", "Something Went Wrong"); status = false; throw e; } return(View(lot)); // return new JsonResult { Data = new { status = status } }; }