//Ham lay danh sach Role private List <SelectListItem> GetRoleForView() { List <SelectListItem> items = new List <SelectListItem>(); RepositoryOBTRS db = new RepositoryOBTRS(); List <tbl_Role> role = db.GetRole(); for (int i = 0; i < role.Count; i++) { items.Add(new SelectListItem { Text = role[i].Role_Name, Value = role[i].Role_ID.ToString() }); } return(items); }