// placeholder for more information in the future public ActionResult Details(string id) { string storeLoc = TempData.Peek("adminLoc").ToString(); CProduct foundProduct = _storeRepo.GetOneProductWithQuantity(storeLoc, id); // concurrent if (foundProduct == null) { ModelState.AddModelError("", "Another admin has just deleted this product"); return(View()); } var viewProduct = ViewModelMapper.MapSingleDetailedProduct(foundProduct); return(View(viewProduct)); }