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 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<IEnumerable<EAccountType>> GetAllAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
return await _contract.GetAllAsync();
|
||||
return await _repository.GetAllAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user