public ActionResult Delete(int id) //dodać w widoku edit { AccountVM vm = new AccountVM(); vm.Delete(id); return(RedirectToAction("Index")); }
public void TestDelete() { AccountVM.TestService(); AccountVM accountVM = new AccountVM(50, 0); accountVM.GetAccount(-500); accountVM.Delete(); Object res = accountVM.GetAccount(-500); Assert.IsNull(res); }