public ActionResult Update(int id) { Packer findList = Packer.Find(id); findList.Packed = true; return(RedirectToAction("Index")); }
public void FindItem_ReturnItemDescription_ReturnItem() { Packer testPacker = new Packer("pillow", "11"); Packer testPacker2 = new Packer("bag", "32"); Assert.AreEqual(testPacker2, Packer.Find(2)); }
public ActionResult Show(int Id, string gearType, bool purchased) { Packer foundPacker = Packer.Find(Id); foundPacker.AddGear(gearType, purchased); return(RedirectToAction("Show")); }
public ActionResult Show(int id) { Packer findList = Packer.Find(id); return(View(findList)); }
public ActionResult AddGear(int Id) { Packer foundPacker = Packer.Find(Id); return(View(foundPacker)); }
public ActionResult Show(int id) { Packer packer = Packer.Find(id); return(View(packer)); }