Exemplo n.º 1
0
        /// <summary>
        /// 刪除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var entity = (sender as Button).DataContext as EmailAccountEntity;

            string.Format("是否刪除發件箱【{0}】", entity.EmailAccountAddress).ShowYesOrNoDialog(yesAction: () =>
            {
                EA_Repository.Delete(entity.EmailAccountID);
                this.ucPage.RefreshList(false);
            });
        }
Exemplo n.º 2
0
 public ResponseModel Delete(EmailAccount emailAccount)
 {
     return(_emailAccountRepository.Delete(emailAccount));
 }