public ActionResult Delete(int id) { var customer = _manager.Get <List <Customers> >("customers").Where(c => c.Id == id).FirstOrDefault(); var isRemoved = _manager.RemoveValue("customers", customer); return(RedirectToAction("Index")); }