Partial View does not render properly in seprate dll with RazorGenerator

Jun 16, 2013 at 6:28 AM
Edited Jun 16, 2013 at 6:28 AM
Hi
Partial View does not render properly in seprate dll with RazorGenerator.
i have an action which return the partial view as jsonresult so in jquery i can inject it in a html dom where it suppose to be, it works in normal project but in the case i create seprate dll it does not work.
 public JsonResult Edit(int id)
        {
            var db = new SyslogEntities();

            var model = db.Routes.Single(c => c.ID == id);

            var json = Json(PartialView("EditRoute", model), JsonRequestBehavior.AllowGet);
            
            return json;
        }
am i do somthing wrong?
thanks for any help.
Jun 16, 2013 at 7:16 AM
Edited Jun 16, 2013 at 7:16 AM
i solved it, i was making a mistake.
thanks