Beispiel #1
0
        public string Logout()
        {
            UserDBData data = new UserDBData();

            data.Logout();
            return("");
        }
Beispiel #2
0
 public string Login(string name, string password)
 {
     try
     {
         User       checkUser = new User(name, password);
         UserDBData data      = new UserDBData();
         string     type      = data.Login(checkUser);
         return(type);
         //string json = new JavaScriptSerializer().Serialize(type);
         //return json;
     }
     catch (Exception oEx)
     {
         return(oEx.Message);
     }
 }