Wrox Programmer Forums
|
BOOK: Professional ASP.NET Design Patterns
This is the forum to discuss the Wrox book Professional ASP.NET Design Patterns by Scott Millett; ISBN: 978-0-470-29278-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2011, 01:55 PM
Registered User
 
Join Date: Jul 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default Request-Response Pattern

Scott,

I'm trying to apply the case study to an actual application. In the case study, there is a CreateCustomerRequest and CreateCustomerResponse message. In this case, a customer would be "user". In my application, a user can register themselves or an administrator can create a user from the admin area. When a user registers, they enter minimal data about themselves. When an admin creates a user, that data is added, plus the administrator can add additional details, such as add the user to a list of user groups and change the state of the account (e.g. Pending, Approved, Disapproved).

Having said all this, would it be recommended to create two different sets of Request-Responses: CreateUserRequest, CreateUserResponse and RegisterUserRequest, RegisterUserResponse?
 
Old September 20th, 2011, 09:04 AM
elbandit's Avatar
Wrox Author
 
Join Date: May 2007
Posts: 107
Thanks: 10
Thanked 17 Times in 15 Posts
Default

Hi getoutofmylabratory!

Thanks for buying the book an sorry for the late reply!

Yes this seems like two use cases, you could share some of the logic behind the scenes when creating the user.

I hope this answers your question!

Cheers
Scott
The Following User Says Thank You to elbandit For This Useful Post:
getoutofmylaboratory (September 20th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Request and Response properties? lornarmac BOOK: Beginning ASP.NET 4 : in C# and VB 3 November 26th, 2010 02:09 PM
XML request and get response praveenkumar .NET Web Services 0 May 23rd, 2007 04:13 AM
Request and Response from server in XML snarreddi XML 3 December 24th, 2004 07:20 AM
Request-response in Tomcat sherbir Servlets 0 September 4th, 2004 04:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.