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)); }
public RoleDto GetByIds(params object[] ids) { var domain = repository.GetByPKs(ids); return(DomainServicesMapper.MapToRoleDto(domain)); }