public HttpResponseMessage GET([FromUri] User user) { if (UserDatabaseAccess.checkPassword(user)) { Guid UserKey = UserDatabaseAccess.getUserKey(user); if (UserKey == Guid.Empty) { return(Request.CreateResponse(HttpStatusCode.Accepted, "Error: Cannot find UserKey")); } else { string userTeam = UserDatabaseAccess.getUserTeam(user); return(Request.CreateResponse(HttpStatusCode.Accepted, UserKey.ToString() + "," + userTeam)); } } else { return(Request.CreateResponse(HttpStatusCode.Accepted, "Error: Incorrect Password or Username")); } }