Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(long id)
        {
            Gen_Mst_GeneralTestCases gen_Mst_GeneralTestCases = db.Gen_Mst_GeneralTestCases.FirstOrDefault(m => m.TestCaseID == id);

            db.Gen_Mst_GeneralTestCases.Remove(gen_Mst_GeneralTestCases);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "TestCaseID,TestCaseCode,StandardName,StandardDesc,Comments,TestCaseOrder,CreatedDate,CreatedBy")] Gen_Mst_GeneralTestCases gen_Mst_GeneralTestCases)
 {
     if (ModelState.IsValid)
     {
         db.Entry(gen_Mst_GeneralTestCases).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.TestCaseCode = new SelectList(db.Gen_Mst_TestCaseType, "TestCaseCode", "Description", gen_Mst_GeneralTestCases.TestCaseCode);
     ViewBag.CreatedBy    = new SelectList(db.Rights_MST_UserMaster, "UserId", "Name", gen_Mst_GeneralTestCases.CreatedBy);
     ViewBag.ModifiedBy   = new SelectList(db.Rights_MST_UserMaster, "UserId", "Name", gen_Mst_GeneralTestCases.ModifiedBy);
     return(View(gen_Mst_GeneralTestCases));
 }
Ejemplo n.º 3
0
        // GET: Gen_Mst_GeneralTestCases/Details/5
        public ActionResult Details(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Gen_Mst_GeneralTestCases gen_Mst_GeneralTestCases = db.Gen_Mst_GeneralTestCases.FirstOrDefault(m => m.TestCaseID == id);

            if (gen_Mst_GeneralTestCases == null)
            {
                return(HttpNotFound());
            }
            return(View(gen_Mst_GeneralTestCases));
        }
Ejemplo n.º 4
0
        // GET: Gen_Mst_GeneralTestCases/Edit/5
        public ActionResult Edit(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Gen_Mst_GeneralTestCases gen_Mst_GeneralTestCases = db.Gen_Mst_GeneralTestCases.FirstOrDefault(m => m.TestCaseID == id);

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