C#
public ActionResult Create()
{
List<SelectListItem> users = new List<SelectListItem>();
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 MakhijaRank #9,687 · 203 pointsPosted Dec 9, 2018, 11:39 PM EST
sonal malhotraRank #4,317 · 351 pointsPosted Dec 9, 2018, 11:47 PM EST
Amit MakhijaRank #9,687 · 203 pointsPosted Dec 9, 2018, 11:57 PM EST