public ActionResult DeleteConfirmed(int id) { tbld_Outlet_channel tbld_Outlet_channel = db.tbld_Outlet_channel.Find(id); db.tbld_Outlet_channel.Remove(tbld_Outlet_channel); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id,name,code,description")] tbld_Outlet_channel tbld_Outlet_channel) { if (ModelState.IsValid) { db.Entry(tbld_Outlet_channel).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tbld_Outlet_channel)); }
public ActionResult Create([Bind(Include = "id,name,code,description")] tbld_Outlet_channel tbld_Outlet_channel) { if (ModelState.IsValid) { db.tbld_Outlet_channel.Add(tbld_Outlet_channel); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tbld_Outlet_channel)); }
// GET: DBhouseOutletChannel/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tbld_Outlet_channel tbld_Outlet_channel = db.tbld_Outlet_channel.Find(id); if (tbld_Outlet_channel == null) { return(HttpNotFound()); } return(View(tbld_Outlet_channel)); }