Ejemplo n.º 1
0
        public ActionResult CreateAC()
        {
            UserGroup newGroup = new UserGroup();
            newGroup.GroupType = GroupType.ACTeam;

            db.UserGroups.Add(newGroup);
            db.SaveChanges();

            return RedirectToAction("Edit/" + newGroup.UserGroupId);
        }
Ejemplo n.º 2
0
 public UserGroupViewModel(UserGroup usrGroup)
 {
     UserGroupId = usrGroup.UserGroupId;
     GroupName = usrGroup.GroupName;
     Sql = usrGroup.Sql;
     GroupType = usrGroup.GroupType;
     GroupImage = new ImageViewModel(usrGroup.UserGroupId, usrGroup.GroupImage);
     Users = usrGroup.Users;
     Administrators = usrGroup.Administrators;
 }
Ejemplo n.º 3
0
 public VMUser(User user, UserGroup group)
 {
     this.user = user;
     this.group = group;
 }