MoveToOrg() public static method

public static MoveToOrg ( CmsData.CMSDataContext db, int pid, int fromOrg, int toOrg, bool moveregdata = true, int toMemberTypeId = -1 ) : void
db CmsData.CMSDataContext
pid int
fromOrg int
toOrg int
moveregdata bool
toMemberTypeId int
return void
Exemplo n.º 1
0
        public void MoveToOrg(int pid, int fromOrg, int toOrg, bool?moveregdata = true, int toMemberTypeId = -1)
        {
            db.LogActivity($"PythonModel.MoveToOrg({pid},{fromOrg},{toOrg})");
            var db2 = NewDataContext();

            OrganizationMember.MoveToOrg(db2, pid, fromOrg, toOrg, moveregdata, toMemberTypeId);
        }
Exemplo n.º 2
0
 public void MoveToOrg(object pid, object fromOrg, object toOrg, bool?moveregdata = true, int toMemberTypeId = -1)
 {
     db.LogActivity($"PythonModel.MoveToOrg({pid},{fromOrg},{toOrg})");
     using (var db2 = NewDataContext())
         OrganizationMember.MoveToOrg(db2, CMSImageDataContext.Create(db2.Host), pid.ToInt(), fromOrg.ToInt(), toOrg.ToInt(), moveregdata, toMemberTypeId);
 }