Files
Yi.Framework/Yi.Framework.Net5/Yi.Framework.PageDetail/Controllers/PageDetaiController.cs
2021-12-25 14:50:54 +08:00

26 lines
671 B
C#

using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Yi.Framework.Interface;
using Yi.Framework.Model.Models;
namespace Yi.Framework.PageDetail.Controllers
{
public class PageDetaiController : Controller
{
private IUserService _IUserService;
public PageDetaiController(IUserService IUserService)
{
_IUserService = IUserService;
}
[Route("/item/{id}.html")]
public IActionResult Index(int id)
{
var htmlmodel = _IUserService.GetEntityById(id);
return View(htmlmodel);
}
}
}