Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created February 10, 2020 15:40
Show Gist options
  • Save LarsBergqvist/70642c9d9f8b7cdec62d2f288815bbdf to your computer and use it in GitHub Desktop.
Save LarsBergqvist/70642c9d9f8b7cdec62d2f288815bbdf to your computer and use it in GitHub Desktop.
An interface for an async version of the locations repository
using System.Collections.Generic;
using System.Threading.Tasks;
namespace LocPoc.Contracts
{
public interface ILocationsRepositoryAsync
{
Task<IEnumerable<Location>> GetAllAsync();
Task<Location> GetAsync(string id);
Task<Location> CreateAsync(Location location);
Task<Location> UpdateAsync(Location location);
Task DeleteAsync(string id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment