Example #1
0
        public ActionResult CreateAC()
        {
            UserGroup newGroup = new UserGroup();
            newGroup.GroupType = GroupType.ACTeam;

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

            return RedirectToAction("Edit/" + newGroup.UserGroupId);
        }
Example #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;
 }
Example #3
0
 public VMUser(User user, UserGroup group)
 {
     this.user = user;
     this.group = group;
 }