Exemplo n.º 1
0
        public HttpResponseMessage UnfriendRequest(SignForm toUsername)
        {
            ClaimsPrincipal loggedUser = (ClaimsPrincipal)HttpContext.Current.User;

            UserDbManager.UnfriendRequest(loggedUser.FindFirst("username").Value, toUsername.Username);
            return(Request.CreateResponse(HttpStatusCode.OK));
        }