示例#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);
        }
示例#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;
 }