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);; }
public void DeleteUser(int user_id) { _usersDao.DeleteUser(user_id); }