Example #1
0
        /// <summary>
        /// This method fills the Classrooms covered by substitutes chart
        /// </summary>
        private void BindClassroomChart()
        {
            using (PyramidContext context = new PyramidContext())
            {
                //Get the chart data
                var classroomInfo = context.spGetClassroomCountBySubstituteStatus(string.Join(",", currentProgramRole.ProgramFKs)).ToList();

                //Bind the chart to the data
                chartClassroomType.DataSource = classroomInfo;
                chartClassroomType.DataBind();
            }
        }