Exemple #1
0
        public JsonResult List([FromForm] string token)
        {
            DataResult dr = new DataResult();

            try
            {
                CourseTypeBLL           courseTypeBLL      = new CourseTypeBLL();
                List <CourseTypeEntity> courseTypeEntities = courseTypeBLL.ActionDal.ActionDBAccess.Queryable <CourseTypeEntity>().Where(it => it.isDel == false).ToList();

                dr.code = "200";
                dr.data = courseTypeEntities;
            }
            catch (Exception ex)
            {
                dr.code = "999";
                dr.msg  = ex.Message;
            }

            return(Json(dr));
        }
Exemple #2
0
 public CourseTypeController()
 {
     courseTypeBLL = new CourseTypeBLL();
 }