Exemplo n.º 1
0
        public ActionResult Delete(int id) //dodać w widoku edit
        {
            AccountVM vm = new AccountVM();

            vm.Delete(id);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public void TestDelete()
        {
            AccountVM.TestService();

            AccountVM accountVM = new AccountVM(50, 0);

            accountVM.GetAccount(-500);

            accountVM.Delete();

            Object res = accountVM.GetAccount(-500);

            Assert.IsNull(res);
        }