예제 #1
0
        public void Invoke(CreateUserRequestModel inputModel, IResponseBoundary <CreateUserResponseModel> responder)
        {
            var newUser = CreateUser(inputModel);

            TryPersistUser(newUser);
            responder.Respond(CreateResponseModel(newUser));
        }
예제 #2
0
        public void Invoke(ChangePasswordRequestModel inputModel,
                           IResponseBoundary <ChangePasswordResponseModel> responder)
        {
            var user = GetExistingUser(inputModel.UserId);

            Validate(inputModel, user);
            UpdateUser(inputModel, user);
            responder.Respond(CreateResponseModel());
        }
예제 #3
0
 public void RefreshUser(Guid id, IResponseBoundary<ShowUserResponseModel> responder) {
     _showUser.Invoke(new ShowUserRequestModel(id), responder);
 }
예제 #4
0
 public void UpdateUser(UserModel user, IResponseBoundary<UpdateUserResponseModel> responder) {
     _updateUser.Invoke(_mapper.DynamicMap<UpdateUserRequestModel>(user), responder);
 }
예제 #5
0
 public void RefreshUsers(IResponseBoundary<ListUsersResponseModel> responder) {
     _listUsers.Invoke(new ListUsersRequestModel(), responder);
 }
예제 #6
0
 public void Invoke(UpdateUserRequestModel inputModel, IResponseBoundary <UpdateUserResponseModel> responder)
 {
     UpdateUser(inputModel);
     responder.Respond(CreateResponseModel());
 }
예제 #7
0
 public void DestroyUser(Guid userId, IResponseBoundary<DestroyUserResponseModel> responder) {
     _destroyUser.Invoke(new DestroyUserRequestModel {UserId = userId}, responder);
 }
예제 #8
0
 public void RefreshUser(Guid id, IResponseBoundary <ShowUserResponseModel> responder)
 {
     _showUser.Invoke(new ShowUserRequestModel(id), responder);
 }
예제 #9
0
 public void Invoke(ListUsersRequestModel inputModel, IResponseBoundary <ListUsersResponseModel> responder)
 {
     responder.Respond(CreateResponseModel());
 }
예제 #10
0
 public void RefreshUsers(IResponseBoundary <ListUsersResponseModel> responder)
 {
     _listUsers.Invoke(new ListUsersRequestModel(), responder);
 }
예제 #11
0
 public void UpdateUser(UserModel user, IResponseBoundary <UpdateUserResponseModel> responder)
 {
     _updateUser.Invoke(_mapper.DynamicMap <UpdateUserRequestModel>(user), responder);
 }
예제 #12
0
 public void DestroyUser(Guid userId, IResponseBoundary <DestroyUserResponseModel> responder)
 {
     _destroyUser.Invoke(new DestroyUserRequestModel {
         UserId = userId
     }, responder);
 }
예제 #13
0
 public void Invoke(DestroyUserRequestModel inputModel, IResponseBoundary <DestroyUserResponseModel> responder)
 {
     TryDestroyUser(inputModel.UserId);
     responder.Respond(CreateResponseModel());
 }
예제 #14
0
 public void Invoke(ShowUserRequestModel inputModel, IResponseBoundary <ShowUserResponseModel> responder)
 {
     responder.Respond(CreateResponseModel(inputModel));
 }