public void Update(AuthorizationModel model)
 {
     Authorization auth = session.Load<Authorization>(model.Id);
     auth.IsAdmin = model.CanAdmin;
     auth.IsOwner = model.CanOwn;
     auth.IsPublisher = model.CanPublish;
 }
Пример #2
0
 internal static void FilledBy(this IList<AuthorizationModel> models, IList<Authorization> authorizations)
 {
     foreach (Authorization auth in authorizations)
     {
         AuthorizationModel model = new AuthorizationModel();
         model.FilledBy(auth);
         models.Add(model);
     }
 }
 public void Update(AuthorizationModel model)
 {
     throw new System.NotImplementedException();
 }