public ActionResult DeleteConfirmed(long id)
        {
            AccountingRecordsSummary accountingRecordsSummary = db.AccountingRecordsSummary.Find(id);

            db.AccountingRecordsSummary.Remove(accountingRecordsSummary);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "GrantId,Cashbook,PettyCashbook,ExpendituresFile,IncomingFundsFile,BankAccountFile,FixedAssetRegister,PayrollRecords,GeneralLedgerNominalLedger,AccountsPayablePurchaseLedger,AccountsReceivableSalesLedger,AdditionalAccountingRecords,FinStatementsApproved,FSADate")] AccountingRecordsSummary accountingRecordsSummary)
 {
     if (ModelState.IsValid)
     {
         db.Entry(accountingRecordsSummary).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(accountingRecordsSummary));
 }
        // GET: AccountingRecordsSummaries/Delete/5
        public ActionResult Delete(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AccountingRecordsSummary accountingRecordsSummary = db.AccountingRecordsSummary.Find(id);

            if (accountingRecordsSummary == null)
            {
                return(HttpNotFound());
            }
            return(View(accountingRecordsSummary));
        }