Exemplo n.º 1
0
        public ActionResult AddToGroup(Guid id)
        {
            var user = _Storage.GetUser(u => u.Id == id);

            var groupList = _Storage.GetGroupsAvailableToUser(user).Select(g => new SelectListItem {
                Text = g.Name, Value = g.Id.ToString(), Selected = false
            });

            var userGroup = new UserGroupModel {
                GroupList = groupList
            };

            return(View(userGroup));
        }