コード例 #1
0
        private UserDto GetDtoByFilters(
            Expression <Func <User, bool> > filter = null,
            Func <IQueryable <User>, IOrderedQueryable <User> > orderBy = null,
            string includeProperties = null)
        {
            var domain = GetByFilters(filter, orderBy, includeProperties).SingleOrDefault();

            return(DomainServicesMapper.MapToUserDto(domain));
        }
コード例 #2
0
        public UserDto GetByIds(params object[] ids)
        {
            var domain = repository.GetByPKs(ids);

            return(DomainServicesMapper.MapToUserDto(domain));
        }