public UserNotificationConnectionComponent()
 {
     mifnexsoEntities           = new MIFNEXSOEntities();
     userNotificationConnection = new UserNotificationConnection();
     userNotificationConnection.UserNotificationConnection1 = Guid.Empty;
     userNotificationConnection.NotificationId = Guid.Empty;
     mifnexsoEntities.UserNotificationConnections.AddObject(userNotificationConnection);
 }
 public UserNotificationConnectionComponent(Guid guid)
 {
     mifnexsoEntities = new MIFNEXSOEntities();
     try
     {
         if (guid != Guid.Empty)
         {
             userNotificationConnection = mifnexsoEntities.UserNotificationConnections.FirstOrDefault(a => a.UserNotificationConnection1 == guid);
         }
         else
         {
             userNotificationConnection = new UserNotificationConnection();
             userNotificationConnection.UserNotificationConnection1 = Guid.Empty;
             userNotificationConnection.NotificationId = Guid.Empty;
             mifnexsoEntities.UserNotificationConnections.AddObject(userNotificationConnection);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }