private Entities.ActiveConnection InsertConnection(String groupName, Entities.Enums.ConnectionType connectionType)
{
Int32 userId = Authentication.Security.CurrentUserId;
if (userId > 0)
{
AS.ActiveConnection.Base.IInsert _insertConnection = BusinessLogic.UnityConfig.Container.Resolve<AS.ActiveConnection.Base.IInsert>();
Entities.ActiveConnection connection = new Entities.ActiveConnection
{
ActiveConnectionID = Context.ConnectionId,
GroupName = groupName,
User_UserId = userId,
ConnectionType = connectionType
};
_insertConnection.Execute(connection);
return connection;
}
return null;
}