public ActionResult Edit(int id) { GadgetDAO gadgetDAO = new GadgetDAO(); GadgetModel gadget = gadgetDAO.GetGadget(id); return(View("GadgetForm", gadget)); }
public ActionResult Details(int id) { GadgetDAO gadgetDAO = new GadgetDAO(); GadgetModel gadget = gadgetDAO.GetGadget(id); return(View("Details", gadget)); }