public async Task <IActionResult> DeleteConfirmed(int id) { var checking = await DAL.FetchAccount(id); DAL.CloseAccount(checking); return(RedirectToAction(nameof(Index))); }
// [共用]關閉帳號 public void CloseAccount(Int64 xid, string upd_user) { AccountDAL.CloseAccount(xid, upd_user); }
public void CloseAccount(IAccount account) { accountdal.CloseAccount(account); }
public void CloseAccount(int accountno) { accountdal.CloseAccount(accountno); }