@RequestMapping(value = "/deactivate", method = RequestMethod.POST) public String deactivate(long id) { User user = userDao.findOne(id); user.setStatus("d"); userDao.save(user); return "Kullanıcı başarıyla DEAktifleştirildi!"; }
@RequestMapping(value = "/create", method = RequestMethod.POST) public String create( String fullName, String tcId, String address, String phoneNumber, String email, String passwd) { User user = new User(); user.setFullName(fullName); user.setTcId(tcId); user.setAddress(address); user.setPhoneNumber(phoneNumber); user.setEmail(email); user.setPasswd(passwd); user.setStatus("a"); userDao.save(user); return "Kullanıcı başarıyla kaydedildi!"; }