// UpdateUser update an existing user
UpdateUser update an existing user
// UpdateUser update an existing user
func (ur *UserMongoRepository) UpdateUser(user models.User) error {
	session, db := database.GetSessionAndDB(database.MONGO_DB)
	err := db.C(USERS_COLLECTION).UpdateId(user.Id, &user)
	database.MongoDBPool.Close(session)
	return err
}
func ( ur * UserMongoRepository ) UpdateUser ( user models . User ) error { session , db := database . GetSessionAndDB ( database . MONGO_DB ) err := db . C ( USERS_COLLECTION ) . UpdateId ( user . Id , & user ) database . MongoDBPool . Close ( session ) return err }
UpdateUser update an existing user
UpdateUser update an existing user