public override void Created(Sungero.Domain.CreatedEventArgs e) { base.Created(e); _obj.LifeCycleState = LifeCycleState.Draft; if (!_obj.State.IsCopied) { _obj.DeliveryMethod = MailDeliveryMethods.GetAll(m => m.Sid == Constants.MailDeliveryMethod.Exchange).FirstOrDefault(); } }
public static IMailDeliveryMethod GetExchangeDeliveryMethod() { return(MailDeliveryMethods.GetAll(x => x.Sid == Constants.MailDeliveryMethod.Exchange).FirstOrDefault()); }