public ActionResult DeleteConfirmed(int id)
        {
            Blotterreports blotterreports = db.Blotterreports.Find(id);

            db.Blotterreports.Remove(blotterreports);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Blotternumber,Id, ResidentName,ResidentFirstName,ResidentMiddleName,ResidentLastName,Incidentlocation,Incidenttype,Status,Remarks,Datereported,DateIncident")] Blotterreports blotterreports)
 {
     if (ModelState.IsValid)
     {
         db.Entry(blotterreports).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(blotterreports));
 }
        public ActionResult Create([Bind(Include = "Id ,Blotternumber,ResidentName,ResidentFirstName,ResidentMiddleName,ResidentLastName,Incidentlocation,Incidenttype,Status,Remarks,Datereported,DateIncident")] Blotterreports blotterreports)
        {
            if (ModelState.IsValid)
            {
                db.Blotterreports.Add(blotterreports);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(blotterreports));
        }
        // GET: Blotterreports/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Blotterreports blotterreports = db.Blotterreports.Find(id);

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