Skip to content

Instantly share code, notes, and snippets.

@evgomes
Created January 31, 2019 13:35
Show Gist options
  • Save evgomes/ffab9b7a5d5b3b7cd6036c63cb3c37d1 to your computer and use it in GitHub Desktop.
Save evgomes/ffab9b7a5d5b3b7cd6036c63cb3c37d1 to your computer and use it in GitHub Desktop.
ICategoryService with DeleteAsync method, of Supermarket API
public interface ICategoryService
{
Task<IEnumerable<Category>> ListAsync();
Task<CategoryResponse> SaveAsync(Category category);
Task<CategoryResponse> UpdateAsync(int id, Category category);
Task<CategoryResponse> DeleteAsync(int id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment