Example #1
0
      public UserDTO login(string subItem, UserDTO user)
      {
          switch (subItem)
          {
          case "login":
              return(UserFunction.login(user));

          case "register":
              return(UserFunction.register(user));

          default:
              break;
          }
          return(null);
      }