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

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

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

            return(response);
        }