public override Task<HttpResponseMessage> PostTestUser(TestUser item)
 {
     return base.PostTestUser(item);
 }
        public override Task<HttpResponseMessage> Post(TestUser item)
        {
            ClaimsPrincipal user = this.User as ClaimsPrincipal;

            Claim userIdClaim = user.Claims.FirstOrDefault(c => c.Type == ClaimTypes.NameIdentifier);
            string userId = (userIdClaim != null) ? userIdClaim.Value : string.Empty;
            item.UserId = userId;
            return base.Post(item);
        }
 public override Task<HttpResponseMessage> Post(TestUser item)
 {
     ServiceUser user = (ServiceUser)this.User;
     item.UserId = user.Id;
     return base.Post(item);
 }