public ActionResult DeleteConfirmed(int id)
        {
            Feedbackss feedbackss = db.Feedbacksses.Find(id);

            db.Feedbacksses.Remove(feedbackss);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,Subject,Description")] Feedbackss feedbackss)
 {
     if (ModelState.IsValid)
     {
         feedbackss.FK_ID = 12345;
         //feedbackss.FK_ID = User.Identity.GetUserId();
         db.Entry(feedbackss).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     //ViewBag.FK_ID = new SelectList(db.RegisteredUsers, "Id", feedbackss.FK_ID);
     return(View(feedbackss));
 }
        // GET: Feedbacksses/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Feedbackss feedbackss = db.Feedbacksses.Find(id);

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

            if (feedbackss == null)
            {
                return(HttpNotFound());
            }
            ViewBag.FK_ID = new SelectList(db.AspNetUsers, "Id", "Cnic", feedbackss.FK_ID);
            return(View(feedbackss));
        }
        public ActionResult Create([Bind(Include = "ID,Subject,Description, FK_ID")] Feedbackss feedbackss)
        {
            Feedbackss fb = new Feedbackss();


            if (ModelState.IsValid)
            {
                fb.ID          = feedbackss.ID;
                fb.Description = feedbackss.Description;
                fb.Subject     = feedbackss.Subject;

                feedbackss.FK_ID = 12;
                db.Feedbacksses.Add(feedbackss);
                db.SaveChanges();
                return(RedirectToAction("MyProducts", "Registerss"));
            }

            //ViewBag.FK_ID = new SelectList(db.AspNetUsers, "Id", feedbackss.FK_ID);
            return(View(feedbackss));
        }