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