예제 #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);
     }
 }
예제 #2
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);
     }
 }