public WcsJosnResult <List <StudentModel> > Get() { return(new WcsJosnResult <List <StudentModel> > { Result = 1, Message = $"已成功获取,接口:{configuration["port"]}", Data = istudentBLL.GetStudentList() }); }
public WcsJosnResult <List <StudentModel> > GetList() { return(new WcsJosnResult <List <StudentModel> > { Result = 1, Message = "成功获取", Data = istudentBLL.GetStudentList() }); }
public IActionResult Index() { _imessageService.Send(); Console.WriteLine(JsonConvert.SerializeObject(studentBLL.GetStudentList())); string msg = "属性注入:" + JsonConvert.SerializeObject(studentBLL2.GetStudentList()); Console.WriteLine(msg); ViewBag.Msg = msg; return(View()); }