Beispiel #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            Gen_Mst_TestCaseType gen_Mst_TestCaseType = db.Gen_Mst_TestCaseType.FirstOrDefault(m => m.TestCaseCode == id);

            db.Gen_Mst_TestCaseType.Remove(gen_Mst_TestCaseType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "TestCaseCode,Description,Comments,CreatedBy,CreatedDate")] Gen_Mst_TestCaseType gen_Mst_TestCaseType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(gen_Mst_TestCaseType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CreatedBy  = new SelectList(db.Rights_MST_UserMaster, "UserId", "Name", gen_Mst_TestCaseType.CreatedBy);
     ViewBag.ModifiedBy = new SelectList(db.Rights_MST_UserMaster, "UserId", "Name", gen_Mst_TestCaseType.ModifiedBy);
     return(View(gen_Mst_TestCaseType));
 }
Beispiel #3
0
        // GET: Gen_Mst_TestCaseType/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Gen_Mst_TestCaseType gen_Mst_TestCaseType = db.Gen_Mst_TestCaseType.FirstOrDefault(m => m.TestCaseCode == id);

            if (gen_Mst_TestCaseType == null)
            {
                return(HttpNotFound());
            }
            return(View(gen_Mst_TestCaseType));
        }
Beispiel #4
0
        // GET: Gen_Mst_TestCaseType/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Gen_Mst_TestCaseType gen_Mst_TestCaseType = db.Gen_Mst_TestCaseType.FirstOrDefault(m => m.TestCaseCode == id);

            if (gen_Mst_TestCaseType == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CreatedBy  = new SelectList(db.Rights_MST_UserMaster, "UserId", "Name", gen_Mst_TestCaseType.CreatedBy);
            ViewBag.ModifiedBy = new SelectList(db.Rights_MST_UserMaster, "UserId", "Name", gen_Mst_TestCaseType.ModifiedBy);
            return(View(gen_Mst_TestCaseType));
        }