Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.