//
        // POST: /GroupsAndPeople/AddNewPerson
        public JsonResult AddNewPerson(NewPersonModel model)
        {
            var newPersonResultModel = new NewPersonResultModel();
            if (String.IsNullOrEmpty(model.FirstName))
            {
                newPersonResultModel.Message = "Firstname can not be blank";
                return Json(newPersonResultModel, JsonRequestBehavior.AllowGet);
            }
            if (String.IsNullOrEmpty(model.LastName))
            {
                newPersonResultModel.Message = "Lastname can not be blank";
                return Json(newPersonResultModel, JsonRequestBehavior.AllowGet);
            }

            try
            {
                _repository.NewPerson(new Person
                                          {
                                              FirstName = model.FirstName,
                                              LastName = model.LastName
                                          });

                newPersonResultModel.Message = "New person Added OK"; //success message is empty in this case
                return Json(newPersonResultModel, JsonRequestBehavior.AllowGet);

            }
            catch
            {
                newPersonResultModel.Message = "Something else went wrong!"; //success message is empty in this case
                return Json(newPersonResultModel, JsonRequestBehavior.AllowGet);
            }
        }
 //
 // GET: /GroupsAndPeople/NewPerson
 public ActionResult NewPerson()
 {
     NewPersonModel model = new NewPersonModel();
     return View(model);
 }