protected HttpResponseMessage AddUsers(string userid, string[] usernames) { foreach (string username in usernames) { UserIDMapper.CreateUser(username, userid); } return(GetUserId(userid)); }
protected HttpResponseMessage AddUserId(string userid, string[] usernames) { if (usernames.Length != 0) { foreach (string username in usernames) { UserIDMapper.CreateUser(username, userid); } return(GetUserIds()); } else { return(GetUserId(userid)); } }