public HttpResponseMessage Index() { var model = new HomeViewModel { Setting1 = "mySettingFromHomeController" }; var response = RazorView.GetResponseWithModel("home", "~/Views/Home/Index.cshtml", model); return(response); }
public HttpResponseMessage Viewer() { var response = RazorView.GetResponse("viewer", "~/Views/Home/Viewer.cshtml"); return(response); }