using Cksoft.Data; using Cksoft.Data.Repository; using Cksoft.Unity; using Cksoft.Unity.Log4NetConfig; using DllEapDal; using DllEapEntity; using DllEapEntity.Dtos; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebApplet.Controllers { [Route("eap/api/[controller]/[action]")] //[Authorize] public class FactoryRegionController : ControllerBase { [HttpGet] public IEnumerable GetRegionTreeSelect(int id) { using (IDatabase db = DbFactory.Base("eapslave")) { db.BeginTrans(); var dal = new FactoryRegionDal(db); string errorinfo = string.Empty; var roles = dal.GetRegionTreeSelect(id, ref errorinfo); return roles; } } } }