func (c *Card) Action(ctx context.Context, face *int, startTime time.Time, query interface{}) (done bool, err error) {
	mc, err := GetModelController(c.model.Type)
	if err != nil {
		return false, err
	}
	done, err = mc.Action(c, face, startTime, query)
	if err != nil {
		return false, err
	}
	db, err := c.repo.userDB(ctx)
	if err != nil {
		return false, err
	}
	return done, saveDoc(ctx, db, c.Card)
}
// Action handles a card action produced by the user.
Action handles a card action produced by the user.
// Action handles a card action produced by the user .
func (c *Card) Action(ctx context.Context, face *int, startTime time.Time, query interface{}) (done bool, err error) {
	mc, err := GetModelController(c.model.Type)
	if err != nil {
		return false, err
	}
	done, err = mc.Action(c, face, startTime, query)
	if err != nil {
		return false, err
	}
	db, err := c.repo.userDB(ctx)
	if err != nil {
		return false, err
	}
	return done, saveDoc(ctx, db, c.Card)
}
func ( c * Card ) Action ( ctx context . Context , face * int , startTime time . Time , query interface { } ) ( done bool , err error ) { mc , err := GetModelController ( c . model . Type ) if err != nil { return false , err } done , err = mc . Action ( c , face , startTime , query ) if err != nil { return false , err } db , err := c . repo . userDB ( ctx ) if err != nil { return false , err } return done , saveDoc ( ctx , db , c . Card ) }
Action handles a card action produced by the user.
Action handles a card action produced by the user .