public HttpResponseMessage AcceptRequest(SignForm toUsername) { ClaimsPrincipal loggedUser = (ClaimsPrincipal)HttpContext.Current.User; UserDbManager.AcceptRequest(loggedUser.FindFirst("username").Value, toUsername.Username); return(Request.CreateResponse(HttpStatusCode.OK)); }