public ActionResult Index() { var userData = Session["UserData"] as UserData; var options = new Dictionary <string, object> { { "getEvents", Url.Action("GetEvents") }, { "currentCulture", Thread.CurrentThread.CurrentCulture.Name.Split('-')[0] }, }; RequireJsOptions.Add("Index", options); var model = new AppointmentsPageModel { AppointmentsListModel = new AppointmentsListModel(), NewAppoitmentModel = _appointmentsRepository.GetNewAppoitmentModel() }; return(View(model)); }