Beispiel #1
0
        private void Delete(int id)
        {
            var dal = new PersonDal();

            using (BypassPropertyChecks)
            {
                dal.DeletePerson(id);
            }
        }
        public ActionResult DeletePerson(string id)
        {
            ObjectId _id;

            ObjectId.TryParse(id, out _id);
            bool result = pDal.DeletePerson(_id);

            return(Json(new { Result = result }, JsonRequestBehavior.AllowGet));
        }