public ActionResult DeleteConfirmed(int id)
        {
            BanglaQuestionBank banglaQuestionBank = db.BanglaQuestionBank.Find(id);

            db.BanglaQuestionBank.Remove(banglaQuestionBank);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Question,OptionA,OptionB,OptionC,OptionD,Verified,Answer,Approve,Date,UserId,CategoyId")] BanglaQuestionBank banglaQuestionBank)
 {
     if (ModelState.IsValid)
     {
         db.Entry(banglaQuestionBank).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.UserId = new SelectList(db.User, "Id", "Name", banglaQuestionBank.UserId);
     return(View(banglaQuestionBank));
 }
        // GET: BanglaQuestionBank/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BanglaQuestionBank banglaQuestionBank = db.BanglaQuestionBank.Find(id);

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

            if (banglaQuestionBank == null)
            {
                return(HttpNotFound());
            }
            ViewBag.UserId = new SelectList(db.User, "Id", "Name", banglaQuestionBank.UserId);
            return(View(banglaQuestionBank));
        }