func (c *IdentityController) List(ctx *app.ListIdentityContext) error {
	return application.Transactional(c.db, func(appl application.Application) error {
		result, err := appl.Identities().List(ctx.Context)
		if err != nil {
			jerrors, _ := jsonapi.ErrorToJSONAPIErrors(goa.ErrInternal(fmt.Sprintf("Error listing identities: %s", err.Error())))
			return ctx.InternalServerError(jerrors)
		}
		return ctx.OK(result)
	})
}
// List runs the list action.
List runs the list action.
// List runs the list action .
func (c *IdentityController) List(ctx *app.ListIdentityContext) error {
	return application.Transactional(c.db, func(appl application.Application) error {
		result, err := appl.Identities().List(ctx.Context)
		if err != nil {
			jerrors, _ := jsonapi.ErrorToJSONAPIErrors(goa.ErrInternal(fmt.Sprintf("Error listing identities: %s", err.Error())))
			return ctx.InternalServerError(jerrors)
		}
		return ctx.OK(result)
	})
}
func ( c * IdentityController ) List ( ctx * app . ListIdentityContext ) error { return application . Transactional ( c . db , func ( appl application . Application ) error { result , err := appl . Identities ( ) . List ( ctx . Context ) if err != nil { jerrors , _ := jsonapi . ErrorToJSONAPIErrors ( goa . ErrInternal ( fmt . Sprintf ( " " , err . Error ( ) ) ) ) return ctx . InternalServerError ( jerrors ) } return ctx . OK ( result ) } ) }
List runs the list action.
List runs the list action .