// UpdateModel attempts update the given model in the database.
UpdateModel attempts update the given model in the database.
// UpdateModel attempts update the given model in the database .
func (d *Database) UpdateModel(model interface{}) error {
	err := d.DB.Update(model)
	if err != nil {
		d.Error("UpdateModel", "Model not updated", err)
		return errors.New("Could not update model")
	}
	d.Success("UpdateModel", "Model updated successfully")
	return nil
}
func ( d * Database ) UpdateModel ( model interface { } ) error { err := d . DB . Update ( model ) if err != nil { d . Error ( " " , " " , err ) return errors . New ( " " ) } d . Success ( " " , " " ) return nil }
UpdateModel attempts update the given model in the database.
UpdateModel attempts update the given model in the database .