public ActionResult GetCourses(int pageNumber, int pageSize, string name)
        {
            CourseBll       courseBll = new CourseBll();
            PagingObject    paging    = new PagingObject(pageNumber, pageSize);
            var             courses   = courseBll.GetPagingCourseByIdOrName(paging, name);
            SelectPageModel model     = new SelectPageModel();
            List <Dictionary <string, object> > listDic = new List <Dictionary <string, object> >();

            foreach (var item in courses)
            {
                var option = new Dictionary <string, object>()
                {
                    { "name", item.value },
                    { "id", item.key }
                };
                listDic.Add(option);
            }
            model.list     = listDic;
            model.totalRow = paging.TotalCount;
            return(Json(new { Data = model }));
        }