Here is the Code:
public class DetailsModel : PageModel { private SignInManager<IdentityUser> _signInManager; private Luser _useR; public DetailsModel( UserManager<IdentityUser> userManager, SignInManager<IdentityUser> signInManager, RoleManager<IdentityRole> roleManager, ApplicationDbContext contexT
) { _signInManager = signInManager; _useR = new Luser(userManager, signInManager, roleManager, contexT); } public void OnGet(int Idc) { var data = _useR.getTusuariosAsync(null, Idc); if(0 < data.Result.Count) { Input = new InputModel { DataUser = data.Result.ToList().Last(), };
} } [BindProperty] public InputModel Input { get; set; } public class InputModel { public InputModelRegistrar DataUser { get; set; } } }
The problem that I got when I select a User it supose to get the ID and show the information from that user but just get the last user. How can I do to Fix that