Example #1
0
        private RoleDto GetDtoByFilters(
            Expression <Func <Role, bool> > filter = null,
            Func <IQueryable <Role>, IOrderedQueryable <Role> > orderBy = null,
            string includeProperties = null)
        {
            var domain = GetByFilters(filter, orderBy, includeProperties).SingleOrDefault();

            return(DomainServicesMapper.MapToRoleDto(domain));
        }
Example #2
0
        public RoleDto GetByIds(params object[] ids)
        {
            var domain = repository.GetByPKs(ids);

            return(DomainServicesMapper.MapToRoleDto(domain));
        }