Ejemplo n.º 1
0
        public IHttpActionResult DeleteAccount(int accountId)
        {
            var account = _accountService.GetAccountUserById(accountId);

            if (account == null || account.Deleted)
            {
                return(NotFound());
            }

            _accountService.DeleteAccountUser(account);

            //activity log
            _accountUserActivityService.InsertActivity("DeleteAccount", "删除 名为 {0} 的用户", account.UserName);

            //通知
            //SuccessNotification(_localizationService.GetResource("Admin.Catalog.Categories.Deleted"));

            return(Ok());
        }