public ActionResult Delete(String id) { if (String.Equals("sample", id, StringComparison.InvariantCultureIgnoreCase)) { return RedirectToRoute("NotAllowed"); } HoloTableController._lockMap[id] = HoloTableController._lockMap.GetValue(id, new Object()); lock (HoloTableController._lockMap[id]) { var model = new DetailModel(id); if (model != null) { model.Delete(); } } return View(); }