12345678910111213141516171819202122232425262728293031323334 |
- 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<TreeSelectDto> 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;
- }
- }
- }
- }
|