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