예제 #1
0
        public async Task <IActionResult> OnGetAsync(string id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            //Employee = await _context.Employee.FirstOrDefaultAsync(m => m.ID == id);
            Employee = _rpcClient.Find <Employee>(id);
            if (Employee == null)
            {
                return(NotFound());
            }
            return(Page());
        }