WeatherForecast[] RemoveInternal(WeatherForecast dataItem) { Forecasts.Remove(dataItem); return(Forecasts.ToArray()); }
public Task <WeatherForecast[]> Remove(WeatherForecast dataItem) { return(Task.FromResult(RemoveInternal(dataItem))); }
public Task <WeatherForecast[]> Update(WeatherForecast dataItem, Dictionary <string, object> newValue) { return(Task.FromResult(UpdateInternal(dataItem, newValue))); }