public void DeleteConsignerById(int id) { var input = new DeleteConsignerByIdInput { Id = id }; using (var repo = new ConsignorRepository()) { var app = new ConsignorAppService(repo); app.DeleteConsignerById(input); } }
public void DeleteConsignerById(DeleteConsignerByIdInput input) { _consignorRepository.DeleteConsignerById(input.Id); }