From 349352422414076d90a7b3018149b34962606c3e Mon Sep 17 00:00:00 2001 From: Leandro Hernan Rojas Date: Thu, 3 Apr 2025 19:22:53 -0300 Subject: [PATCH] Add Patch 5 in API --- Core/Services/AccountTypeService.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Core/Services/AccountTypeService.cs b/Core/Services/AccountTypeService.cs index f69f6e5..dca9d09 100644 --- a/Core/Services/AccountTypeService.cs +++ b/Core/Services/AccountTypeService.cs @@ -1,29 +1,24 @@ using Core.Interfaces; using Domain.Entities; -using Models.Repositories; -using System; -using System.Collections.Generic; -using System.Linq; +using Models.Interfaces; using System.Reflection; -using System.Text; -using System.Threading.Tasks; namespace Core.Services { public class AccountTypeService : IAccountTypeDom { - private readonly PhSAccountTypeRepository _contract; + private readonly IPhSAccountTypeRepository _repository; - public AccountTypeService(PhSAccountTypeRepository repository) + public AccountTypeService(IPhSAccountTypeRepository repository) { - _contract = repository ?? throw new ArgumentNullException(nameof(repository)); + _repository = repository ?? throw new ArgumentNullException(nameof(repository)); } public async Task> GetAllAsync() { try { - return await _contract.GetAllAsync(); + return await _repository.GetAllAsync(); } catch (Exception ex) {