Esempio n. 1
0
        public ActionResult Save(List <AuctionListModel> auctionList)
        {
            bool status = false;

            try
            {
                if (auctionList != null && ModelState.IsValid)
                {
                    AuctionServiceClient service = new AuctionServiceClient();
                    status = service.SaveDataAuctionList(auctionList);
                    //return RedirectToAction("Index");
                }
            }
            catch (Exception e)
            {
                ModelState.AddModelError("error", "Something Went Wrong");
                status = false;
                throw e;
            }

            //return View();
            return(new JsonResult {
                Data = new { status = status }
            });
            //return Json(new { status = true }, JsonRequestBehavior.AllowGet);
        }