public void Remove(T value) { provider.Delete(value.GetType().GetProperty("Id").GetValue(value).ToString()); List.Remove(value); }