public ActionResult Create(Picture_Type pt) { if (ModelState.IsValid) { Picture_Type @type = new Picture_Type { Name = pt.Name }; var temp = ptmanager.Add(@type); if (temp == true) { return(RedirectToAction("Index")); } } return(View(pt)); }
public ActionResult Edit(Picture_Type pt) { ptmanager.Edit(pt); return(RedirectToAction("Index")); }
public ActionResult Edit(int id) { Picture_Type pt = ptmanager.SelectID(id); return(View(pt)); }