public ActionResult DeleteConfirmed(string id) { Gen_Mst_HowDoI gen_Mst_HowDoI = db.Gen_Mst_HowDoI.FirstOrDefault(m => m.TopicName == id); db.Gen_Mst_HowDoI.Remove(gen_Mst_HowDoI); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ProductCode,ModuleCode,ScreenCode,TopicId,TopicName,TDescription,TopicOrder,DemoSourceFile,WordFile,VideoFile,CreatedBy,CreatedDate,GifFile")] Gen_Mst_HowDoI gen_Mst_HowDoI) { if (ModelState.IsValid) { db.Entry(gen_Mst_HowDoI).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ProductCode = new SelectList(db.Gen_Mst_Screen, "ProductCode", "ScreenName", gen_Mst_HowDoI.ProductCode); return(View(gen_Mst_HowDoI)); }
// GET: HowDoI/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Gen_Mst_HowDoI gen_Mst_HowDoI = db.Gen_Mst_HowDoI.FirstOrDefault(m => m.TopicName == id); if (gen_Mst_HowDoI == null) { return(HttpNotFound()); } return(View(gen_Mst_HowDoI)); }
// GET: HowDoI/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Gen_Mst_HowDoI gen_Mst_HowDoI = db.Gen_Mst_HowDoI.FirstOrDefault(m => m.TopicName == id); if (gen_Mst_HowDoI == null) { return(HttpNotFound()); } ViewBag.ProductCode = new SelectList(db.Gen_Mst_Screen, "ProductCode", "ScreenName", gen_Mst_HowDoI.ProductCode); return(View(gen_Mst_HowDoI)); }