コード例 #1
0
        public TransactionsDto GetByIds(params object[] ids)
        {
            Logger.AddLOGMsg($"Get By Ids: {ids}");
            var domain = repository.GetByPKs(ids);

            return(DomainServicesMapper.MapToTransactionsDto(domain));
        }
コード例 #2
0
        private TransactionsDto GetDtoByFilters(
            Expression <Func <Transactions, bool> > filter = null,
            Func <IQueryable <Transactions>, IOrderedQueryable <Transactions> > orderBy = null,
            string includeProperties = null)
        {
            var domain = GetByFilters(filter, orderBy, includeProperties).SingleOrDefault();

            return(DomainServicesMapper.MapToTransactionsDto(domain));
        }