///<summary></summary> public static void Update(PhoneConf phoneConf) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(), phoneConf); return; } Crud.PhoneConfCrud.Update(phoneConf); }
///<summary>Throws exceptions.</summary> public static long Insert(PhoneConf phoneConf) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { phoneConf.PhoneConfNum = Meth.GetLong(MethodBase.GetCurrentMethod(), phoneConf); return(phoneConf.PhoneConfNum); } if (phoneConf == null) { throw new ArgumentException("Invalid conference room.", "phoneConf"); } if (HasConfRoom(phoneConf.Extension)) { throw new ApplicationException("Conference room already in use."); } return(Crud.PhoneConfCrud.Insert(phoneConf)); }