Tạo trang Giới thiệu kế thừa bố cục (layout) Backend
Step 1: tạo Controller
- Tạo file
Controller\Backend\PageController.cs
Step 2: tạo Action
- Tạo hàm (action) GioiThieu
- Code
public class PageController : Controller
{
public ActionResult GioiThieu()
{
ViewBag.Message = "Trang giới thiệu";
return View();
}
}
|