Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created January 28, 2022 00:03
Show Gist options
  • Save tonysneed/b2f490afe55b4dfad40674fb3f3d99da to your computer and use it in GitHub Desktop.
Save tonysneed/b2f490afe55b4dfad40674fb3f3d99da to your computer and use it in GitHub Desktop.
public interface IWeatherRepository
{
Task<IEnumerable<WeatherForecast>> GetAsync();
Task<WeatherForecast?> GetAsync(int id);
Task<WeatherForecast?> AddAsync(WeatherForecast entity);
Task<WeatherForecast?> UpdateAsync(WeatherForecast entity);
Task<int> RemoveAsync(int id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment