﻿using System;
using System.Collections.Generic;
using Onychophora.Application.Interfaces;
using Onychophora.Domain.Entities;
using Onychophora.Domain.Entities.Management;
using Onychophora.Domain.Interfaces.Services;

namespace Onychophora.Application
{
    public class TaxonFieldAppService : AppServiceBase<TaxonCustomField>, ITaxonFieldAppService
    {
        private readonly ITaxonFieldService _taxonFieldService;

        public TaxonFieldAppService(ITaxonFieldService taxonFieldService)
            :base(taxonFieldService)
        {
            _taxonFieldService = taxonFieldService;
        }

        public IEnumerable<TaxonCustomField> GetByTaxonId(int taxonId)
        {
            return _taxonFieldService.GetByTaxonId(taxonId);
        }
    }
}
