Exemple #1
0
  @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!";
  }
Exemple #2
0
  @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!";
  }