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

            MobileAccount = await _context.MobileAccount
                            .Include(m => m.PrepaidCustomer).FirstOrDefaultAsync(m => m.Id == id);

            if (MobileAccount == null)
            {
                return(NotFound());
            }
            ViewData["PrepaidCustomerId"] = new SelectList(_context.Set <PrepaidCustomer>(), "Id", "Name");
            return(Page());
        }
Ejemplo n.º 2
0
 public IActionResult OnGet()
 {
     ViewData["PrepaidCustomerId"] = new SelectList(_context.Set <PrepaidCustomer>(), "Id", "Name");
     return(Page());
 }