Beispiel #1
0
        public IActionResult UpdateVendorForm(int wid, int vid)
        {
            int?id = HttpContext.Session.GetInt32(ID);

            if (id.HasValue)    // check id is in session
            {
                var vendor = dbContext.GetVendor(wid, vid);
                return(View("UpdateVendorForm", vendor));
            }
            else
            {
                return(Redirect("/logout"));
            }
        }