Beispiel #1
0
 public ActionResult Edit(Debit toEdit)
 {
     _repository.Update(toEdit);
     return RedirectToAction("Index");
 }
Beispiel #2
0
 public PartialViewResult AddNew()
 {
     var toCreate = new Debit("", "", 0);
     return PartialView("Edit", toCreate);
 }