private IOrderedQueryable<Core.User> GetUsers(UserContext dbContext) { var query = dbContext.Users; var orderedQuery = query.OrderBy(u => u.UserName); return orderedQuery; }
private UserContext CreateDbContext() { UserContext context = new UserContext("name=SESG.UserWebService.Properties.Settings.SESG_DB"); return context; }