// validates the policies paramter. If correct updates the policies details
        public string ModifyPolicy(Policy policy, int id)
        {
            PolicyValidation validate = new PolicyValidation(policy);
            string message;

            if (validate.Valid == true)
            {
                message = writeModifiedPolicy(policy, id);
            }
            else
            {
                message = validate.Message;
            }
            return message;
        }
        string user = "******"; // hard coded for now, need to merge with staff package.

        #endregion Fields

        #region Methods

        // validates the policies paramter. If correct writes a new policy to the database.
        public string CreatePolicy(Policy policy)
        {
            PolicyValidation validate = new PolicyValidation(policy);
            string message;

            if (validate.Valid == true)
            {
                message = WriteNewPolicy(policy);
            }
            else
            {
                message = validate.Message;
            }
            return message;
        }