コード例 #1
0
 public IActionResult Index()
 {
     if (HttpContext.Session.GetString("VaiTro") != "NguoiQuanTri" && HttpContext.Session.GetString("VaiTro") != "NhanVien")
     {
         return(Redirect(@"~/NguoiDung/Login"));
     }
     else
     {
         ViewBag.Name = HttpContext.Session.GetString("Ten");
         return(View(inhaCungCapS.GetNhaCungCaps()));
     }
 }
コード例 #2
0
 public IActionResult Create()
 {
     ViewBag.NhaCungCap = inhacungcaps.GetNhaCungCaps();
     return(View());
 }
コード例 #3
0
 public IActionResult Index()
 {
     return(View(inhaCungCapS.GetNhaCungCaps()));
 }
コード例 #4
0
 public IActionResult Create()
 {
     ViewBag.Name       = HttpContext.Session.GetString("Ten");
     ViewBag.NhaCungCap = inhacungcaps.GetNhaCungCaps();
     return(View());
 }