public ActionResult Select(LocationVM loc)
 {
     if (ModelState.IsValid)
     {
         Debug.WriteLine(loc.id);
         Location loc2 = _strBL.ChooseLocById(int.Parse(loc.locationName));
         if (loc == null)
         {
             return(NotFound());
         }
         ViewBag.LocationName = loc2.locationName;
         //ViewData["Pass"] = cust.customerPassword;
         //return View("Menu");
         HttpContext.Session.SetInt32("locationID", loc2.id);
         // for future reference when trying to get session info
         //string name = HttpContext.Session.GetString("customerName");
         HttpContext.Session.SetString("locationName", loc2.locationName);
         return(Redirect("../Product/Select"));
     }
     return(BadRequest("Invalid model state"));
 }