Ejemplo n.º 1
0
        public HttpResponseMessage Index()
        {
            var model = new HomeViewModel
            {
                Setting1 = "mySettingFromHomeController"
            };

            var response = RazorView.GetResponseWithModel("home", "~/Views/Home/Index.cshtml", model);

            return(response);
        }
Ejemplo n.º 2
0
        public HttpResponseMessage Viewer()
        {
            var response = RazorView.GetResponse("viewer", "~/Views/Home/Viewer.cshtml");

            return(response);
        }