Esempio n. 1
0
 public ActionResult DeleteConfirmed(Guid id)
 {
     AccountBook.Models.AccountBook accountBook = _AccountBookSvc.GetSingle(id);
     _AccountBookSvc.Delete(accountBook);
     _AccountBookSvc.Save();
     return(RedirectToAction("Index"));
 }
Esempio n. 2
0
 public ActionResult Delete(Guid?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     AccountBook.Models.AccountBook accountBook = _AccountBookSvc.GetSingle(id.Value);
     if (accountBook == null)
     {
         return(HttpNotFound());
     }
     return(View(accountBook));
 }