Exemple #1
0
        /// <summary>
        /// Adds the agency alias.
        /// </summary>
        /// <param name="agencyAlias">
        /// The agency alias.
        /// </param>
        public virtual void AddAgencyAlias(AgencyAlias agencyAlias)
        {
            Check.IsNotNull(agencyAlias, "agencyAlias is required.");

            agencyAlias.Agency = this;
            _agencyAliases.Add(agencyAlias);

            NotifyItemAdded(() => AgencyAliases, agencyAlias);
        }
Exemple #2
0
 /// <summary>
 /// Removes the agency alias.
 /// </summary>
 /// <param name="agencyAlias">
 /// The agency alias.
 /// </param>
 public virtual void RemoveAgencyAlias( AgencyAlias agencyAlias )
 {
     _agencyAliases.Delete(agencyAlias);
     NotifyItemRemoved ( () => AgencyAliases, agencyAlias );
 }
Exemple #3
0
        /// <summary>
        /// Adds the agency alias.
        /// </summary>
        /// <param name="agencyAlias">
        /// The agency alias.
        /// </param>
        public virtual void AddAgencyAlias( AgencyAlias agencyAlias )
        {
            Check.IsNotNull ( agencyAlias, "agencyAlias is required." );

            agencyAlias.Agency = this;
            _agencyAliases.Add ( agencyAlias );

            NotifyItemAdded ( () => AgencyAliases, agencyAlias );
        }
Exemple #4
0
 /// <summary>
 /// Removes the agency alias.
 /// </summary>
 /// <param name="agencyAlias">
 /// The agency alias.
 /// </param>
 public virtual void RemoveAgencyAlias(AgencyAlias agencyAlias)
 {
     _agencyAliases.Delete(agencyAlias);
     NotifyItemRemoved(() => AgencyAliases, agencyAlias);
 }