An interface for an async version of the locations repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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