예제 #1
0
        public bool Insert(int ConferenceID, int PersonID, string Country, string City, string Religion, string JobTitle, string Company, string PassportAttachment, bool IsOrganizationApproved, bool IsTaken, string VisaAttachment)
        {
            VisaRequestDAC visarequestComponent = new VisaRequestDAC();
            int            VisaRequestID        = 0;

            return(visarequestComponent.InsertNewVisaRequest(ref VisaRequestID, ConferenceID, PersonID, Country, City, Religion, JobTitle, Company, PassportAttachment, IsOrganizationApproved, IsTaken, VisaAttachment));
        }
예제 #2
0
        public bool Insert(VisaRequest visarequest)
        {
            int            autonumber           = 0;
            VisaRequestDAC visarequestComponent = new VisaRequestDAC();
            bool           endedSuccessfuly     = visarequestComponent.InsertNewVisaRequest(ref autonumber, visarequest.ConferenceID, visarequest.PersonID, visarequest.Country, visarequest.City, visarequest.Religion, visarequest.JobTitle, visarequest.Company, visarequest.PassportAttachment, visarequest.IsOrganizationApproved, visarequest.IsTaken, visarequest.VisaAttachment);

            if (endedSuccessfuly)
            {
                visarequest.VisaRequestID = autonumber;
            }
            return(endedSuccessfuly);
        }