mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-04-26 18:30:25 +00:00
nullreference MY ASS
This commit is contained in:
parent
6623a72766
commit
6d3cbbc1cd
1 changed files with 3 additions and 1 deletions
|
@ -40,6 +40,8 @@ namespace Project_Unite.Controllers
|
|||
Text = converted.Name,
|
||||
Value = converted.Name
|
||||
});
|
||||
if (converted.Id == id)
|
||||
model.RoleId = converted.Name;
|
||||
}
|
||||
model.Users = new List<SelectListItem>();
|
||||
foreach(var u in db.Users.OrderBy(x => x.DisplayName).ToArray())
|
||||
|
@ -50,7 +52,7 @@ namespace Project_Unite.Controllers
|
|||
Value = u.Id
|
||||
});
|
||||
}
|
||||
model.RoleId = id;
|
||||
model.Username = db.Users.First().Id;
|
||||
return View(model);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue