public void Delete(int id) { HotelEntities context = new HotelEntities(); context.RemoveFeatures(id); context.SaveChanges(); MainViewModel.Instance.ActiveScreen = new FeaturesViewModel(); }