public ActionResult DeleteConfirmed(Guid id) { AccountBook.Models.AccountBook accountBook = _AccountBookSvc.GetSingle(id); _AccountBookSvc.Delete(accountBook); _AccountBookSvc.Save(); return(RedirectToAction("Index")); }
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)); }