Example #1
0
        public string DeleteTarget()
        {
            DataAbstractionLayer dal = new DataAbstractionLayer();
            bool isValidId           = Int32.TryParse(Request.Params["TargetID"], out int targetID);

            if (isValidId)
            {
                dal.DeleteTarget(targetID);
                return("Removal has been successful!");
            }
            return("Target ID is not valid!");
        }