package com.rootser.bluerootser.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rootser.bluerootser.model.User;
import com.rootser.bluerootser.repository.UserRepository;

@Service
public class UserServiceImpl implements UserService{
	@Autowired
	UserRepository userRepo;
	public List<User> getUser(String userId){
		return userRepo.findByUserName(userId);
	}
	@Override
	public User updateUser(User userObj) {
		// TODO Auto-generated method stub
		return null;
	}
}

@@ -517,42 +517,31 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub
+userRepo.save(userObj);
 %0A%09%09r
@@ -550,12 +550,15 @@
 urn 
-null
+userObj
 ;%0A%09%7D

implement save operation