예제 #1
0
        /// <summary> <see cref="IDependentDomain.GetByCategoryIdAsync(Guid)"/> </summary>
        public async Task <IList <DependentDomainModel> > GetByEmployeeIdAsync(Guid id)
        {
            var models = await _repository.GetByEmployeeIdAsync(id).ConfigureAwait(false);

            IList <DependentDomainModel> domainModels = ToListModel <DependentDomainModel, Dependent>(models);

            return(domainModels);
        }
        private async Task <IEnumerable <DependentDomainModel> > GetDependents(Guid id)
        {
            var models = await _repositoryDependent.GetByEmployeeIdAsync(id).ConfigureAwait(false);

            var domainModels = ToListModel <DependentDomainModel, Dependent>(models);

            return(domainModels);
        }