public async Task <ActionResult> DeleteConfirmed(int id)
        {
            PoliceReportedModel policeReportedModel = await db.PoliceReportedModel.FindAsync(id);

            db.PoliceReportedModel.Remove(policeReportedModel);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "PoliceReportedId,PolicReported")] PoliceReportedModel policeReportedModel)
        {
            if (ModelState.IsValid)
            {
                db.Entry(policeReportedModel).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(policeReportedModel));
        }
        public async Task <ActionResult> Create([Bind(Include = "PoliceReportedId,PolicReported")] PoliceReportedModel policeReportedModel)
        {
            if (ModelState.IsValid)
            {
                db.PoliceReportedModel.Add(policeReportedModel);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(policeReportedModel));
        }
        // GET: PoliceReportedModels/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PoliceReportedModel policeReportedModel = await db.PoliceReportedModel.FindAsync(id);

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