예제 #1
0
        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"));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public bool Delete(Guid AccountID)
 {
     return(ModelAccont.Delete(AccountID));
 }
예제 #4
0
 public void Delete(int accountId)
 {
     Dao.Delete(accountId);
 }