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())); } }
public IActionResult Create() { ViewBag.NhaCungCap = inhacungcaps.GetNhaCungCaps(); return(View()); }
public IActionResult Index() { return(View(inhaCungCapS.GetNhaCungCaps())); }
public IActionResult Create() { ViewBag.Name = HttpContext.Session.GetString("Ten"); ViewBag.NhaCungCap = inhacungcaps.GetNhaCungCaps(); return(View()); }