public ActionResult Create(Person person)
 {
     if (ModelState.IsValid)
     {
         db.Add(person);
         return(RedirectToAction("Details", new { id = person.Id }));
     }
     return(View());
 }
        public ActionResult Create(Person person)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    db.Add(person);
                    Log.Info(Helper.ADD_NEW_PERSON_SUCCESS);
                    return(RedirectToAction("Details", new { id = person.Id }));
                }
            }
            catch (NullReferenceException e)
            {
                Log.Error(Helper.UPDATE_ERROR, e);
                return(View("NotFound"));
            }
            catch (Exception e)
            {
                Log.Fatal(Helper.FATAL_ERROR, e);
                return(View("Error"));
            }

            return(View("Create"));
        }