December 2019
Intermediate to advanced
510 pages
11h 33m
English
Since we have defined all the requests and response types needed by our service, we are now able to proceed by defining the IItemService interface and its implementation. As a first step, we can create a new Services folder in the Catalog.Domain project and proceed by defining the following IItemService interface:
using System.Collections.Generic;using System.Threading.Tasks;using Catalog.Domain.Requests.Item;using Catalog.Domain.Responses;namespace Catalog.Domain.Services{ public interface IItemService { Task<IEnumerable<ItemResponse>> GetItemsAsync(); Task<ItemResponse> GetItemAsync(GetItemRequest request); Task<ItemResponse> AddItemAsync(AddItemRequest request); Task<ItemResponse> EditItemAsync(EditItemRequest ...Read now
Unlock full access