Add Patch 5 in API
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m0s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m0s
This commit is contained in:
parent
a44f321652
commit
3493524224
@ -1,29 +1,24 @@
|
|||||||
using Core.Interfaces;
|
using Core.Interfaces;
|
||||||
using Domain.Entities;
|
using Domain.Entities;
|
||||||
using Models.Repositories;
|
using Models.Interfaces;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Core.Services
|
namespace Core.Services
|
||||||
{
|
{
|
||||||
public class AccountTypeService : IAccountTypeDom
|
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<IEnumerable<EAccountType>> GetAllAsync()
|
public async Task<IEnumerable<EAccountType>> GetAllAsync()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return await _contract.GetAllAsync();
|
return await _repository.GetAllAsync();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user