Пример #1
0
        public UserIdentity execute(CreateUserRequest create_request)
        {
            SetRequest(create_request)
                .ValidateRequest()
                .AddUserToRepository()
                .Commit();

            return new UserIdentity() { user_id = user.ID };
        }
Пример #2
0
 private CreateUser SetRequest(CreateUserRequest create_request)
 {
     request = Guard.IsNotNull(create_request, "create_request");
     return this;
 }