Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public UserDto GetByIds(params object[] ids)
        {
            var domain = repository.GetByPKs(ids);

            return(DomainServicesMapper.MapToUserDto(domain));
        }