Reputation: 24315
I'm not sure what is going on, but the action below is being hit in the controller. Why would it do this? Shouldnt it just render the URL. The _schoolsService is null, but I'm using Ninject. I removed the attributes on the Action and received the same thing.
<a href="#" data-bind="click: manage.teacher.changeSchools.open.bind($data, true, '@(Url.Action(MVC.Schools.GetDistrictSchoolsForUser(Model.Teacher.Id)))')">Change</a>)
MVC.Schools is a T4MVC method.
[HttpPost, NatGeoUserAccessAuthorization]
public virtual ActionResult GetDistrictSchoolsForUser(string id)
{
return Json(_schoolsService.GetDistrictSchoolsForUserId(id), JsonRequestBehavior.AllowGet);
}
Upvotes: 0
Views: 230
Reputation: 24315
I ran the custom tool again for T4MVC, and it must of regenerated something to correct the issue. It is now working.
Upvotes: 2