Exemple #1
0
 public bool Insert( int RoleId,  int ContentEntityId,  int SystemFunctionId,  bool HasAccess,  DateTime ModifiedDate)
 {
     ModifiedDate = DateTime.Now;
     RolePrivilegeDAC roleprivilegeComponent = new RolePrivilegeDAC();
     int RolePrivilegeId = 0;
     HasAccess = true;
     return roleprivilegeComponent.InsertNewRolePrivilege( ref RolePrivilegeId,  RoleId,  ContentEntityId,  SystemFunctionId,  HasAccess,  DateTime.Now);
 }
Exemple #2
0
 public bool Insert(RolePrivilege roleprivilege)
 {
     int autonumber = 0;
     RolePrivilegeDAC roleprivilegeComponent = new RolePrivilegeDAC();
     roleprivilege.HasAccess = true;
     bool endedSuccessfuly = roleprivilegeComponent.InsertNewRolePrivilege( ref autonumber,  roleprivilege.RoleId,  roleprivilege.ContentEntityId,  roleprivilege.SystemFunctionId,  roleprivilege.HasAccess,  DateTime.Now);
     if(endedSuccessfuly)
     {
         roleprivilege.RolePrivilegeId = autonumber;
     }
     return endedSuccessfuly;
 }