public User CheckQuestion([FromBody]User user) { MysqlHelper mysqlhelper = new MysqlHelper(); var status= mysqlhelper.CheckQestion(user); if (status.Status == "Success") { string ip = GetClientIp(); { mysqlhelper.UpdateLoginStatus(status, ip); } } return status; }