This commit is contained in:
454313500@qq.com
2021-03-20 15:02:23 +08:00
parent 59a42ae48f
commit 2e5b991db0
7 changed files with 95 additions and 88 deletions

View File

@@ -0,0 +1,30 @@
using CC.Yi.IBLL;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CC.Yi.API.Controllers
{
[ApiController]
[Route("[controller]/[action]")]
public class StudentController : ControllerBase
{
private readonly ILogger<StudentController> _logger;
private IstudentBll _studentBll;
public StudentController(ILogger<StudentController> logger, IstudentBll studentBll)
{
_studentBll = studentBll;
_logger = logger;
}
[HttpGet]
public IActionResult Test()
{
var data = _studentBll.GetAllEntities().ToList();
return Content(Common.JsonFactory.JsonToString(data));
}
}
}