public ActionResult DeleteConfirmed(long id)
        {
            InternalControlsSummary internalControlsSummary = db.InternalControlsSummary.Find(id);

            db.InternalControlsSummary.Remove(internalControlsSummary);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "GrantId,ExpenditureAuthorisedUsingPaymentVoucher,InvoicesCheckedAgainstOrders,RecordsOfOrdersPlace,QualityAndQuantityChecked,PaymentsMadeAgainstOriginalInvoices,RegularStockTakingUndertaken,ConditionsForChequesComplied,MultipeignatoriesOnBankMandate,ChequeExpenditureNoted,ChequeStubsCompleted,ChequesSignedWithDocumentaryEvidence,PettyCashPaymentsHaveDocumentation,SupportingDocumentationAuthorised,ClaimAmountsEntered,PaymentsNotedInPettyCashBook,ToppingUpWithdrawalsNotedInPettyCashBook,RegularChecksOfPettyCashRecords,BankBccountsHeldInNameOfOrganisation,InstructionsToOpenCloseAccountsAuthorised,SecureRecordsHeld,RegularBankReconciliationsPerformed,BankStatementsInspected,SalaryLevelsAuthorised,StaffEmployedUnderContract,ComplianceWithStatutoryTaxRegulations,AssetsCheckedRegularly,InsuranceCover,UseOfFixedAssetsReviewed,ProduceFinancialStatements,PeriodRecentStatements,ReceiversOfFinancialStatements,AnnualFinancialStatementsAudited,LastExternalAudit,LastExternalAuditDate,FinancialReportsForManagers,ManagerReportFrequency,ManagerReportCoveragePeriod,ManagerReportCreator,PeriodicReportsForDonors,DonorReportFrequency,DonorReportCreator,DonorReportReceivers")] InternalControlsSummary internalControlsSummary)
 {
     if (ModelState.IsValid)
     {
         db.Entry(internalControlsSummary).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(internalControlsSummary));
 }
        // GET: InternalControlsSummaries/Delete/5
        public ActionResult Delete(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            InternalControlsSummary internalControlsSummary = db.InternalControlsSummary.Find(id);

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