Exemple #1
0
 public static void AddClassTechnician(Guid organizationId, int classID,
                                       int loginCompJuncID)
 {
     try
     {
         ClassTechnicianJctn ct = new ClassTechnicianJctn(organizationId);
         ct.AddNew();
         ct.Class_id            = classID;
         ct.LoginCompanyJunc_id = loginCompJuncID;
         ct.Save();
     }
     catch (SqlException ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
 }
 public static void AddClassTechnician(Guid organizationId, int classID,
                                       int loginCompJuncID)
 {
     try
     {
         ClassTechnicianJctn ct = new ClassTechnicianJctn(organizationId);
         ct.AddNew();
         ct.Class_id = classID;
         ct.LoginCompanyJunc_id = loginCompJuncID;
         ct.Save();
     }
     catch (SqlException ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
 }