public ActionResult Save(Bam.Net.Analytics.Protocol[] values) { try { ProtocolCollection saver = new ProtocolCollection(); saver.AddRange(values); saver.Save(); return(Json(new { Success = true, Message = "", Dao = "" })); } catch (Exception ex) { return(GetErrorResult(ex)); } }
public NetworkModel() { this.m_Protocols = new ProtocolCollection(this, "Protocols"); m_NetworkStatus = NetworkStatus.DisconnectedNetworkStatus; m_NetworkStatusProviders = new Hashtable(); }
private void CreateProtocolCollection() { NativeMethods.Profile profile = CapiPInvoke.GetProfile(_id); // B1 protocols; List<Protocol> protocolList = GetProtocols(profile.B1_Protocols, typeof(NativeMethods.B1Protocol), ProtocolStrings.ResourceManager, "B1_"); _protocols = new ProtocolCollection(protocolList); }