December 2019
Intermediate to advanced
510 pages
11h 33m
English
Now that we have implemented the right filtering logic on the repository side, let's proceed by implementing delete operations in the Catalog.Domain project by adding a new DeleteItemAsync method in the declaration of the IItemService interface:
namespace Catalog.Domain.Services{ public interface IItemService { ... Task<ItemResponse> DeleteItemAsync(DeleteItemRequest request); }}
The DeleteItemAsync method refers to a DeleteItemRequest type, which can be declared as follows:
using System;namespace Catalog.Domain.Requests.Item{ public class DeleteItemRequest { public Guid Id { get; set; } }}
Once we update the IItemService interface declaration, we can proceed by adding the implementation to the ItemService
Read now
Unlock full access