//регистрация public String doRegister(String login,String password) { try { if (login == null) return "0"; if (password == null) return "0"; Models.User usr = new Models.User(); if (login != "" && password != "") { usr.doAddUser(login, password); return "1"; } else { return "0"; } } catch { return "0"; } }