func (c *UsersController) List(ctx *app.ListUsersContext) error {
	return application.Transactional(c.db, func(appl application.Application) error {
		var err error
		var users []*account.User
		var result *app.UserArray
		users, err = appl.Users().List(ctx.Context)
		if err == nil {
			result, err = LoadKeyCloakIdentities(appl, ctx.RequestData, users)
			if err == nil {
				return ctx.OK(result)
			}
		}
		return jsonapi.JSONErrorResponse(ctx, errors.Wrap(err, "Error listing users"))
	})
}
// List runs the list action.
List runs the list action.
// List runs the list action .
func (c *UsersController) List(ctx *app.ListUsersContext) error {
	return application.Transactional(c.db, func(appl application.Application) error {
		var err error
		var users []*account.User
		var result *app.UserArray
		users, err = appl.Users().List(ctx.Context)
		if err == nil {
			result, err = LoadKeyCloakIdentities(appl, ctx.RequestData, users)
			if err == nil {
				return ctx.OK(result)
			}
		}
		return jsonapi.JSONErrorResponse(ctx, errors.Wrap(err, "Error listing users"))
	})
}
func ( c * UsersController ) List ( ctx * app . ListUsersContext ) error { return application . Transactional ( c . db , func ( appl application . Application ) error { var err error var users [ ] * account . User var result * app . UserArray users , err = appl . Users ( ) . List ( ctx . Context ) if err == nil { result , err = LoadKeyCloakIdentities ( appl , ctx . RequestData , users ) if err == nil { return ctx . OK ( result ) } } return jsonapi . JSONErrorResponse ( ctx , errors . Wrap ( err , " " ) ) } ) }
List runs the list action.
List runs the list action .