Exemplo n.º 1
0
        public bool Insert(int PersonId, string Service, string Institution, string Evaluation, DateTime StartDate, DateTime EndDate)
        {
            PersonInternshipDAC personinternshipComponent = new PersonInternshipDAC();
            int PersonInternshipId = 0;

            return(personinternshipComponent.InsertNewPersonInternship(ref PersonInternshipId, PersonId, Service, Institution, Evaluation, StartDate, EndDate));
        }
Exemplo n.º 2
0
        public bool Insert(PersonInternship personinternship)
        {
            int autonumber = 0;
            PersonInternshipDAC personinternshipComponent = new PersonInternshipDAC();
            bool endedSuccessfuly = personinternshipComponent.InsertNewPersonInternship(ref autonumber, personinternship.PersonId, personinternship.Service, personinternship.Institution, personinternship.Evaluation, personinternship.StartDate, personinternship.EndDate);

            if (endedSuccessfuly)
            {
                personinternship.PersonInternshipId = autonumber;
            }
            return(endedSuccessfuly);
        }