Here is the Code:
public class DetailsModel : PageModel
{
private SignInManager
private Luser _useR;
public DetailsModel(
UserManager
SignInManager
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

Salvador CastilloPosted Aug 1, 2021, 12:58 PM
Sachin SinghPosted Jul 30, 2021, 10:47 PM