public string unassignAdmin(string forumName, string username, string requestingUser) { List <string> input = new List <string>() { forumName, username, requestingUser }; if (Constants.isValidInput(input)) { lock (o) { int minNumOfAdmins = _fm.getForumMinAdmins(forumName); if (minNumOfAdmins == -1) { return(Constants.forumDoesntExist(forumName)); } int currentAmountOfAdmins = _um.getNumOfAdmins(forumName); if (currentAmountOfAdmins == -1) { throw new Exception("Forum was successfully added to one section of the system yet not to another. CRITICAL FAILURE"); } if (currentAmountOfAdmins <= minNumOfAdmins) { return(Constants.ILLEGAL_ACTION); } return(_um.unassignAdmin(forumName, username, requestingUser)); } } return(Constants.INVALID_INPUT); }