Пример #1
0
 ///<summary></summary>
 public static long Insert(PhoneEmpSubGroup phoneEmpSubGroup)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         phoneEmpSubGroup.PhoneEmpSubGroupNum = Meth.GetLong(MethodBase.GetCurrentMethod(), phoneEmpSubGroup);
         return(phoneEmpSubGroup.PhoneEmpSubGroupNum);
     }
     return(Crud.PhoneEmpSubGroupCrud.Insert(phoneEmpSubGroup));
 }
Пример #2
0
 ///<summary></summary>
 public static void Update(PhoneEmpSubGroup phoneEmpSubGroup)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), phoneEmpSubGroup);
         return;
     }
     Crud.PhoneEmpSubGroupCrud.Update(phoneEmpSubGroup);
 }