public static int GetDLUserID(Guid organizationId, int BWDLoginID)
 {
     DeploymentLoggerUser usr = new DeploymentLoggerUser(organizationId);
     usr.Where.LoginID.Value = BWDLoginID;
     usr.Where.LoginID.Operator = WhereParameter.Operand.Equal;
     usr.Query.Load();
     return usr.DefaultView.Table.Rows.Count > 0 ? usr.DLUserID : 0;
 }
Exemple #2
0
        public static int GetDLUserID(Guid organizationId, int BWDLoginID)
        {
            DeploymentLoggerUser usr = new DeploymentLoggerUser(organizationId);

            usr.Where.LoginID.Value    = BWDLoginID;
            usr.Where.LoginID.Operator = WhereParameter.Operand.Equal;
            usr.Query.Load();
            return(usr.DefaultView.Table.Rows.Count > 0 ? usr.DLUserID : 0);
        }
 public static int AddUser(Guid organizationId, int BWDLoginID,
                           int DLUserID)
 {
     DeploymentLoggerUser usr = new DeploymentLoggerUser(organizationId);
     usr.AddNew();
     usr.DLUserID = DLUserID;
     usr.LoginID = BWDLoginID;
     usr.Save();
     return usr.ID;
 }
Exemple #4
0
        public static int AddUser(Guid organizationId, int BWDLoginID,
                                  int DLUserID)
        {
            DeploymentLoggerUser usr = new DeploymentLoggerUser(organizationId);

            usr.AddNew();
            usr.DLUserID = DLUserID;
            usr.LoginID  = BWDLoginID;
            usr.Save();
            return(usr.ID);
        }