Ejemplo n.º 1
0
        public RatesDto GetByIds(params object[] ids)
        {
            Logger.AddLOGMsg($"Get By Ids: {ids}");
            var domain = repository.GetByPKs(ids);

            return(DomainServicesMapper.MapToRatesDto(domain));
        }
Ejemplo n.º 2
0
        private RatesDto GetDtoByFilters(
            Expression <Func <Rates, bool> > filter = null,
            Func <IQueryable <Rates>, IOrderedQueryable <Rates> > orderBy = null,
            string includeProperties = null)
        {
            var domain = GetByFilters(filter, orderBy, includeProperties).SingleOrDefault();

            return(DomainServicesMapper.MapToRatesDto(domain));
        }