Example #1
0
 public string TestAddUser(User user)
 {
     var a = new IUserService();
     var ret = a.Add(user);
     if (ret == 1)
     {
         return "success";
     }
     else
     {
         return "failed";
     }
 #endregion
 }
Example #2
0
 public string TestGetUser(string user, string password)
 {
     var a = new IUserService();
     var ret = a.Get(user, password);
     if (ret != null)
     {
         return "success";
     }
     else
     {
         return "failed";
     }
 }