public ActionResult DeleteConfirmed(int id)
        {
            PlantDiseaseFeedback plantDiseaseFeedback = db.PlantDiseaseFeedbacks.Find(id);

            db.PlantDiseaseFeedbacks.Remove(plantDiseaseFeedback);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "AgricultureSpecialistId,PlantDiseaseFactorId")] PlantDiseaseFeedback plantDiseaseFeedback)
 {
     if (ModelState.IsValid)
     {
         db.Entry(plantDiseaseFeedback).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.PlantDiseaseFactorId = new SelectList(db.PlantDiseaseFactors, "Id", "Id", plantDiseaseFeedback.PlantDiseaseFactorId);
     return(View(plantDiseaseFeedback));
 }
        // GET: PlantDiseaseFeedbacks/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PlantDiseaseFeedback plantDiseaseFeedback = db.PlantDiseaseFeedbacks.Find(id);

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

            if (plantDiseaseFeedback == null)
            {
                return(HttpNotFound());
            }
            ViewBag.PlantDiseaseFactorId = new SelectList(db.PlantDiseaseFactors, "Id", "Id", plantDiseaseFeedback.PlantDiseaseFactorId);
            return(View(plantDiseaseFeedback));
        }