// GetModel attempts retrieve the given model from the database.
GetModel attempts retrieve the given model from the database.
// GetModel attempts retrieve the given model from the database .
func (d *Database) GetModel(model interface{}) error {
	err := d.DB.Select(model)
	if err != nil {
		d.Error("GetModel", "Model not get", err)
		return errors.New("Could not get model")
	}
	d.Success("GetModel", "Model retrieve successfully")
	return nil
}
func ( d * Database ) GetModel ( model interface { } ) error { err := d . DB . Select ( model ) if err != nil { d . Error ( " " , " " , err ) return errors . New ( " " ) } d . Success ( " " , " " ) return nil }
GetModel attempts retrieve the given model from the database.
GetModel attempts retrieve the given model from the database .
// Select model by given in model properties.