public IEnumerable <string> GetAllUsers(int pageIndex, int pageSize) { var all = (from e in NewContext.AllDelegations(DefaultPartitionKey) select e.UserName); return(all.Distinct().ToList()); }
public IEnumerable <DelegationSetting> GetDelegationSettingsForUser(string userName) { return(NewContext.AllDelegations(DefaultPartitionKey, userName).ToDomainModel()); }