Hello Friends,
I've build a module with a form, I need to populate a drop down list using ajax call.
I made a class lib project and put all my controllers their. I added a reference and a rout to the module rout table:
Code:
<add name="vFramework" url="vFramework_{Controller}/{action}" routeType="Everest.CmsServices.Web.KoobooRoute, Everest.CmsServices" routeHandlerType="Everest.CmsServices.Web.KoobooMvcRouteHandler, Everest.CmsServices">
<defaults></defaults>
<dataTokens Namespaces="vFramework.CmsServices.Controllers"/>
</add>
Now when I see the ajax call in Firebug, its being redirect to the login page, I need this method to be access by every user including anonymous.
This is the method I'm trying to call :
Code:
public class CommonController:EverestControllerBase
{
public JsonResult GetActivitiesLevel(int LanguageId)
{
return Json(Health.PatientsManager.GetActivityLevels(LanguageId).ToArray(), JsonRequestBehavior.AllowGet);
}
}
can someone help me here.
Thanks,
El