// GetAllModels attempts retrieve all models based on the given model from the database.
GetAllModels attempts retrieve all models based on the given model from the database.
// GetAllModels attempts retrieve all models based on the given model from the database .
func (d *Database) GetAllModels(model interface{}) error {
	err := d.DB.Model(model).Select()
	if err != nil {
		d.Error("GetAllModels", "Models not get", err)
		return errors.New("Could not get all models"+ err.Error())
	}
	d.Success("GetAllModels", "Model retrieve successfully")
	return nil
}
func ( d * Database ) GetAllModels ( model interface { } ) error { err := d . DB . Model ( model ) . Select ( ) if err != nil { d . Error ( " " , " " , err ) return errors . New ( " " + err . Error ( ) ) } d . Success ( " " , " " ) return nil }
GetAllModels attempts retrieve all models based on the given model from the database.
GetAllModels attempts retrieve all models based on the given model from the database .