public ActionResult LocationItems(string locationCode) { PI_DAL.DAL dal = new PI_DAL.DAL(); HandHeldLocation model = dal.GetHandHeldForLocation(locationCode); ViewBag.records = model.location.items.Count; return(View(model)); }
public HandHeldLocation GetHandHeldForLocation(string locationCode) { HandHeldLocation hh = new HandHeldLocation(); hh.location = GetLocations().Where(l => l.locationCode == locationCode).SingleOrDefault(); hh.locationsList = GeltSelectListForLocations(); return(hh); }
public ActionResult LocationItems(HandHeldLocation model) { if (ModelState.IsValid) { var x = model; var z = x.location.items; TempData["lastloc"] = model.location.locationCode; return(RedirectToAction("Locations")); } else { return(View(model)); } }