Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using ServiceStack with ASP.NET/MVC applications


ASP.NET/MVC has arguably improved the lives of .NET web developers who are serious about creating really great web apps. While not as clean and low-level as ServiceStack, ASP.NET/MVC (often just called MVC by .NET programmers) was a radical improvement in the lives of many developers previously stuck with WebForms—its lower level of abstraction was vastly preferred over its older sibling. MVC is much closer to writing straight, static HTML that makes it easier than WebForms to build and maintain as well.

A great many sites have been developed using MVC. While MVC provides the WebAPI system to develop services, integrating ServiceStack side by side with MVC applications is easy and very useful.

Getting ready

In this recipe, we'll discuss how to run ServiceStack services side by side with ASP.NET MVC applications. This would be a common scenario to enhance a legacy ASP.NET MVC application with a ServiceStack service. We'll use the ServiceStackVS...