Beispiel #1
0
 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;
 }