示例#1
0
        public string DeleteUser(string username)
        {
            string success  = $"{username} successfully deleted";
            string failed   = $"{username} failed to be removed";
            int    response = 0;

            if (username != null)
            {
                response = dao.DeleteUser(username);
            }

            return((response == 1) ? success : failed);;
        }
示例#2
0
 public void DeleteUser(int user_id)
 {
     _usersDao.DeleteUser(user_id);
 }