Click here to Skip to main content
15,898,134 members
Articles / Programming Languages / C#

Dynamic Service Result Builder (Exception Pattern, Result Pattern, Decorator Pattern)

Rate me:
Please Sign up or sign in to vote.
3.67/5 (7 votes)
14 Oct 2020CPOL14 min read 7.4K   3  
What type of result should the Service method return to the Caller
I answer some questions that cross our minds when we start designing our Application. What type will we return when calling Methods of Services? What properties will it contain? Will the expected result of this method be sufficient? In this topic, I attempted to answer these questions by offering some scenarios about how services methods would connect to the ASP.NET Core 3.1 Controllers.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Syrian Arab Republic Syrian Arab Republic
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions