STAGE 3-4

This commit is contained in:
2025-11-12 18:57:51 +08:00
parent 744eddcd77
commit ae09a6f487
17 changed files with 80 additions and 35 deletions

View File

@@ -14,6 +14,8 @@ using DocumentFormat.OpenXml.Office2010.Excel;
public class newsController : BaseApiController
{
// GET api/<controller>
// TODO: CRITICAL - 無參數 Get() 會載入所有消息到內存(可能數百筆)
// 建議:停用此方法,強制使用分頁版本 Get(page, pageSize)
public IEnumerable<Model.news> Get()
{
var list = _db.news.ToList();