public ActionResult DeleteConfirmed(int id)
        {
            M_Contest_Master m_Contest_Master = db.M_Contest_Master.Find(id);

            db.M_Contest_Master.Remove(m_Contest_Master);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Contest_ID,Contest__Code,Contest_Desc,Banner_Image_Path,Bit_Amount,Max_People,Promo_Code,Promo_Code_Values,CreatedBy,ModifiedBy,CreatedDate,ModifiedDate,Active")] M_Contest_Master m_Contest_Master)
 {
     if (ModelState.IsValid)
     {
         db.Entry(m_Contest_Master).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Contest_ID = new SelectList(db.T_User_Contest, "Contest_Id", "Contest_Description", m_Contest_Master.Contest_ID);
     return(View(m_Contest_Master));
 }
        // GET: M_Contest_Master/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            M_Contest_Master m_Contest_Master = db.M_Contest_Master.Find(id);

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

            if (m_Contest_Master == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Contest_ID = new SelectList(db.T_User_Contest, "Contest_Id", "Contest_Description", m_Contest_Master.Contest_ID);
            return(View(m_Contest_Master));
        }