private void SetSelectLists(ISessionSelectLists model) { model.LevelSelectList = new SelectList(new[] { new SelectListItem { Value = "100", Text = T("Session_Level100") }, new SelectListItem { Value = "200", Text = T("Session_Level200") }, new SelectListItem { Value = "300", Text = T("Session_Level300") }, new SelectListItem { Value = "400", Text = T("Session_Level400") } }, "Value", "Text"); model.DurationSelectList = new SelectList(new[] { new SelectListItem { Value = "20", Text = T("SessionCommunity_1_Minutes", 20) }, new SelectListItem { Value = "45", Text = T("Session_1_Minutes", 45) }, new SelectListItem { Value = "60", Text = T("Session_1_Minutes", 60) } }, "Value", "Text"); model.EventSelectList = new SelectList(service.GetEventList(), "Id", "Name"); }
private void SetSelectLists(ISessionSelectLists model) { model.LevelSelectList = new SelectList(new[] { new SelectListItem {Value = "100", Text = T("Session_Level100")}, new SelectListItem {Value = "200", Text = T("Session_Level200")}, new SelectListItem {Value = "300", Text = T("Session_Level300")}, new SelectListItem {Value = "400", Text = T("Session_Level400")} }, "Value", "Text"); model.DurationSelectList = new SelectList(new[] { new SelectListItem {Value = "20", Text = T("SessionCommunity_1_Minutes", 20)}, new SelectListItem {Value = "45", Text = T("Session_1_Minutes", 45)}, new SelectListItem {Value = "60", Text = T("Session_1_Minutes", 60)} }, "Value", "Text"); model.EventSelectList = new SelectList(service.GetEventList(), "Id", "Name"); }