Beispiel #1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Join_Asset_Emp = await _context.Join_Asset_Emp
                             .Include(j => j.Asset).FirstOrDefaultAsync(m => m.JoinAsEmpID == id);

            if (Join_Asset_Emp == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Beispiel #2
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Join_Asset_Emp = await _context.Join_Asset_Emp
                             .Include(j => j.Asset).FirstOrDefaultAsync(m => m.JoinAsEmpID == id);

            if (Join_Asset_Emp == null)
            {
                return(NotFound());
            }
            ViewData["Asset_AssetID"] = new SelectList(_context.Asset, "AssetID", "AssetName");
            return(Page());
        }