Created
December 20, 2011 20:03
-
-
Save serdarb/1503033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DogmaticWcf.Web.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
private readonly IMyService _service; | |
public HomeController(IMyService service) | |
{ | |
_service = service; | |
} | |
public ActionResult Index() | |
{ | |
ViewBag.Message = "Welcome to my dogmatic wcf implemantation with castle windsor and ASP.NET MVC!"; | |
ViewBag.MyProperty = _service.DoSomething(new MyDto() { MyProperty = "Testing" }); | |
return View(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment