public ActionResult DeleteConfirmed(int id)
        {
            DOCTORSUSERRATING dOCTORSUSERRATING = db.DOCTORSUSERRATINGS.Find(id);

            db.DOCTORSUSERRATINGS.Remove(dOCTORSUSERRATING);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "USERRATINGID,DOCTORID,DOCTORNAME,ClinicName,USERID,USERNAME,USERCOMMENTS,USERSearchDATETIME")] DOCTORSUSERRATING dOCTORSUSERRATING)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dOCTORSUSERRATING).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.DOCTORID = new SelectList(db.DOCTORS, "DOCTORID", "DOCTORNAME", dOCTORSUSERRATING.DOCTORID);
     return(View(dOCTORSUSERRATING));
 }
        // GET: DOCTORSUSERRATINGs/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            DOCTORSUSERRATING dOCTORSUSERRATING = db.DOCTORSUSERRATINGS.Find(id);

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

            if (dOCTORSUSERRATING == null)
            {
                return(HttpNotFound());
            }
            ViewBag.DOCTORID = new SelectList(db.DOCTORS, "DOCTORID", "DOCTORNAME", dOCTORSUSERRATING.DOCTORID);
            return(View(dOCTORSUSERRATING));
        }