Esempio n. 1
0
        public bool Insert(int RoleId, int PersonId, DateTime ModifiedDate)
        {
            ModifiedDate = DateTime.Now;
            PersonRoleDAC personroleComponent = new PersonRoleDAC();
            int           PersonRoleId        = 0;

            return(personroleComponent.InsertNewPersonRole(ref PersonRoleId, RoleId, PersonId, ModifiedDate));
        }
Esempio n. 2
0
        public bool Insert(PersonRole personrole)
        {
            int           autonumber          = 0;
            PersonRoleDAC personroleComponent = new PersonRoleDAC();
            bool          endedSuccessfuly    = personroleComponent.InsertNewPersonRole(ref autonumber, personrole.RoleId, personrole.PersonId, personrole.ModifiedDate);

            if (endedSuccessfuly)
            {
                personrole.PersonRoleId = autonumber;
            }
            return(endedSuccessfuly);
        }