Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created January 28, 2022 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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