public object Update(UserContract userContract)
 {
     var userId = _usersService.Invoke(x => x.Update(userContract));
     return new
     {
         userId = userId
     };
 }
        public Guid Update(UserContract userContract)
        {
            var user = _users[userContract.Id];
            user.FirstName = userContract.FirstName;
            user.LastName = userContract.LastName;
            user.Membership.UserName = userContract.UserName;

            return user.Id;
        }
        public Guid Create(UserContract userContract)
        {
            var user = new User
                {
                    FirstName = userContract.FirstName,
                    LastName = userContract.LastName,
                    Membership = new Membership
                        {
                            Password = userContract.Password,
                            UserName = userContract.UserName
                        }
                };
            _users.Put(user);

            return user.Id;
        }