public ActionResult Delete(MoneyViewModel pagedata) { MoneyViewModel instance = dao.GetSingleRow(pagedata.id); if (instance == null) { return(HttpNotFound()); } int result = dao.Delete(pagedata.id); return(RedirectToAction("Money")); }
public void DeleteTest() { var account = target.GetAccounts(new AccountFilter { Deleted = false }).FirstOrDefault(); account.Deleted = 1; target.Delete(account.AccountId); var expect = target.GetAccount(account.AccountId); Assert.AreEqual(1, expect.Deleted); }
public bool Delete(Guid AccountID) { return(ModelAccont.Delete(AccountID)); }
public void Delete(int accountId) { Dao.Delete(accountId); }