Example #1
0
        //ONLY FOR POSTMAN PURPOSES AND DELETING DATA. DELETE WILL BE "SOFT"

        internal object DeleteBugById(int id)
        {
            Bug bugExists = _bugrepo.GetBugById(id);

            if (bugExists == null)
            {
                throw new Exception("Invalid: Bug Cannot Be Deleted");
            }
            _bugrepo.DeleteBugById(id);
            return("Successfully Deleted Bug");
        }