1234567891011121314151617181920212223242526272829303132333435 |
- 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<HomeData> Get()
- {
- using (IDatabase db = DbFactory.Base("ufp"))
- {
- var dal = new HomeDal(db);
- var data = dal.get();
- return new EapApiResponse<HomeData>
- {
- Code = "OK",
- Data = data
- };
- }
- }
- }
- }
|