December 2019
Intermediate to advanced
510 pages
11h 33m
English
Once the mapper layer is completed, we can proceed by implementing the service layer. Let's start by defining the ItemService.cs file in the Services folder of the Catalog.Domain project. The following code describes the implementation of the constructor method and the reading operations:
using System;using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;using Catalog.Domain.Mappers;using Catalog.Domain.Repositories;using Catalog.Domain.Requests.Item;using Catalog.Domain.Responses;namespace Catalog.Domain.Services{ public class ItemService : IItemService { private readonly IItemRepository _itemRepository; private readonly IItemMapper _itemMapper; public ItemService ...