public ActionResult DeleteConfirmed(int id) { CatVirusSubType catVirusSubType = db.CatVirusSubType.Find(id); db.CatVirusSubType.Remove(catVirusSubType); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,SPA,ENG,id_country,orden")] CatVirusSubType catVirusSubType) { if (ModelState.IsValid) { db.Entry(catVirusSubType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(catVirusSubType)); }
public ActionResult Create([Bind(Include = "ID,SPA,ENG,id_country,orden")] CatVirusSubType catVirusSubType) { if (ModelState.IsValid) { db.CatVirusSubType.Add(catVirusSubType); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(catVirusSubType)); }
// GET: CatVirusSubTypes/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CatVirusSubType catVirusSubType = db.CatVirusSubType.Find(id); if (catVirusSubType == null) { return(HttpNotFound()); } return(View(catVirusSubType)); }