public void Invoke(CreateUserRequestModel inputModel, IResponseBoundary <CreateUserResponseModel> responder) { var newUser = CreateUser(inputModel); TryPersistUser(newUser); responder.Respond(CreateResponseModel(newUser)); }
public void Invoke(ChangePasswordRequestModel inputModel, IResponseBoundary <ChangePasswordResponseModel> responder) { var user = GetExistingUser(inputModel.UserId); Validate(inputModel, user); UpdateUser(inputModel, user); responder.Respond(CreateResponseModel()); }
public void RefreshUser(Guid id, IResponseBoundary<ShowUserResponseModel> responder) { _showUser.Invoke(new ShowUserRequestModel(id), responder); }
public void UpdateUser(UserModel user, IResponseBoundary<UpdateUserResponseModel> responder) { _updateUser.Invoke(_mapper.DynamicMap<UpdateUserRequestModel>(user), responder); }
public void RefreshUsers(IResponseBoundary<ListUsersResponseModel> responder) { _listUsers.Invoke(new ListUsersRequestModel(), responder); }
public void Invoke(UpdateUserRequestModel inputModel, IResponseBoundary <UpdateUserResponseModel> responder) { UpdateUser(inputModel); responder.Respond(CreateResponseModel()); }
public void DestroyUser(Guid userId, IResponseBoundary<DestroyUserResponseModel> responder) { _destroyUser.Invoke(new DestroyUserRequestModel {UserId = userId}, responder); }
public void RefreshUser(Guid id, IResponseBoundary <ShowUserResponseModel> responder) { _showUser.Invoke(new ShowUserRequestModel(id), responder); }
public void Invoke(ListUsersRequestModel inputModel, IResponseBoundary <ListUsersResponseModel> responder) { responder.Respond(CreateResponseModel()); }
public void RefreshUsers(IResponseBoundary <ListUsersResponseModel> responder) { _listUsers.Invoke(new ListUsersRequestModel(), responder); }
public void UpdateUser(UserModel user, IResponseBoundary <UpdateUserResponseModel> responder) { _updateUser.Invoke(_mapper.DynamicMap <UpdateUserRequestModel>(user), responder); }
public void DestroyUser(Guid userId, IResponseBoundary <DestroyUserResponseModel> responder) { _destroyUser.Invoke(new DestroyUserRequestModel { UserId = userId }, responder); }
public void Invoke(DestroyUserRequestModel inputModel, IResponseBoundary <DestroyUserResponseModel> responder) { TryDestroyUser(inputModel.UserId); responder.Respond(CreateResponseModel()); }
public void Invoke(ShowUserRequestModel inputModel, IResponseBoundary <ShowUserResponseModel> responder) { responder.Respond(CreateResponseModel(inputModel)); }