// UpdateUser update an existing user
UpdateUser update an existing user
// UpdateUser update an existing user
func (us *UserService) UpdateUser(user models.User) error {
	us.UserRepos.OpenTransaction()
	err := us.UserRepos.UpdateUser(user)
	releaseConnection(us)
	return err
}
func ( us * UserService ) UpdateUser ( user models . User ) error { us . UserRepos . OpenTransaction ( ) err := us . UserRepos . UpdateUser ( user ) releaseConnection ( us ) return err }
UpdateUser update an existing user
UpdateUser update an existing user