Add Patch 7 in API
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m53s

This commit is contained in:
Leandro Hernan Rojas 2025-04-03 19:57:32 -03:00
parent 4e15bcfcc1
commit e80a917a2b

View File

@ -27,9 +27,17 @@ namespace Core.Services
} }
} }
public Task<EAccountType?> GetByNameAsync(string name) public async Task<EAccountType?> GetByNameAsync(string name)
{ {
throw new NotImplementedException(); try
{
return await _repository.GetByNameAsync(name);
}
catch (Exception ex)
{
var methodName = MethodBase.GetCurrentMethod()?.Name ?? "UnknownMethod";
throw new Exception($"{methodName} Message: {ex.Message}", ex);
}
} }
} }
} }