Ejemplo n.º 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);
        }
Ejemplo n.º 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 );
 }
Ejemplo n.º 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 );
        }
Ejemplo n.º 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);
 }