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)); }
public CourseTypeController() { courseTypeBLL = new CourseTypeBLL(); }