Beispiel #1
0
 public void AddGroup(string name)
 {
     if (!Context.PersonId.HasValue)
     {
         throw new UnassignedUserException();
     }
     BaseSecurity.IsDistrictAdmin(Context); // only admin can create group ... think do we need this for demo
     GroupStorage.Add(new Group {
         Name = name, OwnerRef = Context.PersonId.Value
     });
 }