C# Class Wiz.Biblioteca.API.Services.CustomerService

Inheritance: ICustomerService
Mostra file Open project: juscelior/workshop-tdd-bakend

Public Methods

Method Description
Add ( CustomerViewModel customerVM ) : CustomerViewModel
CustomerService ( ICustomerRepository customerRepository, IViaCEPService viaCEPService, IDomainNotification domainNotification, IUnitOfWork unitOfWork, IMapper mapper ) : AutoMapper
GetAddressByIdAsync ( CustomerIdViewModel customerVM ) : Task
GetAddressByNameAsync ( CustomerNameViewModel customerVM ) : Task
GetAllAsync ( ) : Task>
GetByIdAsync ( CustomerIdViewModel customerVM ) : Task
Remove ( CustomerViewModel customerVM ) : void
Update ( CustomerViewModel customerVM ) : void

Method Details

Add() public method

public Add ( CustomerViewModel customerVM ) : CustomerViewModel
customerVM CustomerViewModel
return CustomerViewModel

CustomerService() public method

public CustomerService ( ICustomerRepository customerRepository, IViaCEPService viaCEPService, IDomainNotification domainNotification, IUnitOfWork unitOfWork, IMapper mapper ) : AutoMapper
customerRepository ICustomerRepository
viaCEPService IViaCEPService
domainNotification IDomainNotification
unitOfWork IUnitOfWork
mapper IMapper
return AutoMapper

GetAddressByIdAsync() public method

public GetAddressByIdAsync ( CustomerIdViewModel customerVM ) : Task
customerVM CustomerIdViewModel
return Task

GetAddressByNameAsync() public method

public GetAddressByNameAsync ( CustomerNameViewModel customerVM ) : Task
customerVM CustomerNameViewModel
return Task

GetAllAsync() public method

public GetAllAsync ( ) : Task>
return Task>

GetByIdAsync() public method

public GetByIdAsync ( CustomerIdViewModel customerVM ) : Task
customerVM CustomerIdViewModel
return Task

Remove() public method

public Remove ( CustomerViewModel customerVM ) : void
customerVM CustomerViewModel
return void

Update() public method

public Update ( CustomerViewModel customerVM ) : void
customerVM CustomerViewModel
return void