Skip to content

Instantly share code, notes, and snippets.

@evgomes
Created January 30, 2019 18:56
Show Gist options
  • Save evgomes/091a450f716ee0899f3c3ba958880718 to your computer and use it in GitHub Desktop.
Save evgomes/091a450f716ee0899f3c3ba958880718 to your computer and use it in GitHub Desktop.
FindByIdAsync and Update from ICategoryRepository, of Supermarket API
public interface ICategoryRepository
{
Task<IEnumerable<Category>> ListAsync();
Task AddAsync(Category category);
Task<Category> FindByIdAsync(int id);
void Update(Category category);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment