public ActionResult Person(PersonValidationViewModel model)
        {
            if (!ModelState.IsValid)
            {

                if (Request.IsAjaxRequest())
                {
                    var errors = GetErrorsFromModelState();
                    return Json(new {success = false, errors = errors});
                }
                else
                {
                    return View("_Person",model);
                    //RedirectToAction("View1", model);
                }
                //return PartialView("_Person", model);
            }

            //save to persistent store;
            //return data back to post OR do a normal MVC Redirect....
            if (Request.IsAjaxRequest())
            {
                return Json(new {success = true});  //perhaps you want to do more on return.... otherwise this if block is not necessary....
            }

            return RedirectToAction("Index");
        }
        public ActionResult View1(PersonValidationViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            //save to persistent store;
            return RedirectToAction("Index");
        }
        public ActionResult Person(PersonValidationViewModel model)
        {
            if (!ModelState.IsValid)
            {
                //var errors = GetErrorsFromModelState();
                //return Json(new {success = false, errors = errors});
                return PartialView("_Person", model);
            }

            //save to persistent store;
            //return data back to post OR do a normal MVC Redirect....
            return Json(new {success = true});
            //return RedirectToAction("Index");
        }