예제 #1
0
        void UpdateUser(UpdateUserRequestModel inputModel)
        {
            var user = GetExistingUser(inputModel.Id);

            user.UserName = inputModel.UserName;
            user.Password = inputModel.Password;
            UserRepository.Update(user);
        }
예제 #2
0
 public void Invoke(UpdateUserRequestModel inputModel, IResponseBoundary <UpdateUserResponseModel> responder)
 {
     UpdateUser(inputModel);
     responder.Respond(CreateResponseModel());
 }