public ActionResult Create()
{
List users = new List();
foreach (var user in context.Users)
{
users.Add(new SelectListItem { Text = user.UserName, Value = user.Id });
}
ViewBag.Users = users;
}
[ httppost]
public ActionResult Create()
???
}
hello i m new learning mvc identitiy (user individual athentication). how to set context.users (identity ) and how to insert value(context users ) to another new table
please
sharing is care
thanks sonal
Amit MakhijaPosted Dec 10, 2018, 4:57 AM
sonal malhotraPosted Dec 10, 2018, 4:47 AM
Amit MakhijaPosted Dec 10, 2018, 4:39 AM