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; }
public User LoginUser([FromBody]User user) { MysqlHelper mysqlhelper = new MysqlHelper(); // return "Success"; var status = mysqlhelper.SearchUser(user); if (status.Status == "Success") { string ip = GetClientIp(); { mysqlhelper.UpdateLoginStatus(status,ip); } } return status; }