コード例 #1
0
        public HttpResponseMessage Put(string NewPassword)
        {
            ClaimsPrincipal p          = RequestContext.Principal as ClaimsPrincipal;
            string          dbLogin    = p.Claims.ElementAt(1).Value;
            string          dbPassword = p.Claims.ElementAt(2).Value;

            OrganisationDA.UpdatePassword(dbLogin, dbPassword, NewPassword);

            return(new HttpResponseMessage(HttpStatusCode.OK));
        }