using Cksoft.Data; using Cksoft.Data.Repository; using DllEapDal.OFILM; using DllEapEntity.Dtos; using DllEapEntity.OFILM; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Text; namespace DllEapBll.OFILM { [Route("eap/api/[controller]/[action]")] [ApiController] [Authorize] public class HomeController:ControllerBase { [HttpGet] public EapApiResponse Get() { using (IDatabase db = DbFactory.Base("ufp")) { var dal = new HomeDal(db); var data = dal.get(); return new EapApiResponse { Code = "OK", Data = data }; } } } }