public ActionResult Delete(int?id) { Location location = _locationmanager.Find(x => x.Id == id).FirstOrDefault(); return(View(location)); }