Beispiel #1
0
        public void TestDeleteUser()
        {
            UserSetService   service   = new UserSetService();
            UserSetViewModel ViewModel = service.DeleteUser("tes2");

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