Beispiel #1
0
        public void TestAddUser()
        {
            UserSetService   service   = new UserSetService();
            UserSetViewModel ViewModel = service.AddUser("tes2", "", "1");

            Console.WriteLine(UtilTest.GetJson(ViewModel));
        }
Beispiel #2
0
 public object AddUser([FromBody] JObject obj)
 {
     try
     {
         string userName    = obj["userName"].ToString();
         string password    = obj["password"].ToString();
         string userGroupID = obj["userGroupID"].ToString();
         return(service.AddUser(userName, password, userGroupID));
     }
     catch (Exception e)
     {
         return(9999);
     }
 }