public void Save(HiringRequestInfo hiringRequestInfo)
        {
            // get the path of the archive file
            string filePath = GetRequestInfoFolder() + hiringRequestInfo.Id.ToString() + ".data.xml";

            // save the data in the file
            XElement requestInfo =
                new XElement("hiringRequest",
                        new XAttribute("id", hiringRequestInfo.Id.ToString()),
                        new XAttribute("requesterId", hiringRequestInfo.RequesterId),
                        new XAttribute("created", hiringRequestInfo.CreationDate),
                        new XAttribute("positionId", hiringRequestInfo.PositionId),
                        new XAttribute("departmentId", hiringRequestInfo.DepartmentId),
                        new XElement("description", hiringRequestInfo.Description));
            requestInfo.Save(filePath);
        }
        public void Save(HiringRequestInfo hiringRequestInfo)
        {
            // get the path of the archive file
            string filePath = GetRequestInfoFolder() + hiringRequestInfo.Id.ToString() + ".data.xml";

            // save the data in the file
            XElement requestInfo =
                new XElement("hiringRequest",
                             new XAttribute("id", hiringRequestInfo.Id.ToString()),
                             new XAttribute("requesterId", hiringRequestInfo.RequesterId),
                             new XAttribute("created", hiringRequestInfo.CreationDate),
                             new XAttribute("positionId", hiringRequestInfo.PositionId),
                             new XAttribute("departmentId", hiringRequestInfo.DepartmentId),
                             new XElement("description", hiringRequestInfo.Description));

            requestInfo.Save(filePath);
        }