public void SetViewBagUser(int?selectedID = null) { var dao = new PictureDAO(); ViewBag.UserID = new SelectList(dao.GetListUser(), "UserID", "Name", selectedID); }