public ActionResult DeleteConfirmed(int id)
        {
            PoliceReport_type policeReport_type = db.PoliceReport_type.Find(id);

            db.PoliceReport_type.Remove(policeReport_type);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(PoliceReport_type policeReport_type)
 {
     if (ModelState.IsValid)
     {
         db.Entry(policeReport_type).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(policeReport_type));
 }
        public ActionResult Create(PoliceReport_type policeReport_type)
        {
            if (ModelState.IsValid)
            {
                db.PoliceReport_type.Add(policeReport_type);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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