Skip to content

Instantly share code, notes, and snippets.

@evgomes
Created January 30, 2019 15:25
Show Gist options
  • Save evgomes/d60b53cb84a59aee2d0ea708c352e4f6 to your computer and use it in GitHub Desktop.
Save evgomes/d60b53cb84a59aee2d0ea708c352e4f6 to your computer and use it in GitHub Desktop.
ICategoryService with new SaveAsync method, from Supermarket API
using System.Collections.Generic;
using System.Threading.Tasks;
using Supermarket.API.Domain.Models;
using Supermarket.API.Domain.Services.Communication;
namespace Supermarket.API.Domain.Services
{
public interface ICategoryService
{
Task<IEnumerable<Category>> ListAsync();
Task<SaveCategoryResponse> SaveAsync(Category category);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment