public void RegisterUser(String name, String email, String passwd)
        {
            User user = (User)
                        _engine.ExecuteCommand(new CreateUserCommand(name, passwd, email));

            HttpContext.User = user;

            Redirect("home", "index");
        }
Esempio n. 2
0
        public void Insert(String name, String bs, String sc)
        {
            bool      isPublic   = (bool)PropertyBag["isPublic"];
            String    ownerEmail = (String)PropertyBag["ownerEmail"];
            Hashtable properties = (Hashtable)PropertyBag["properties"];

            _engine.ExecuteCommand(
                new CreateProjectCommand(isPublic, name, sc, bs, ownerEmail, properties));

            Redirect("dashboard", "index");
        }
Esempio n. 3
0
 object ExecuteCommand(ICommand command)
 {
     return(_engine.ExecuteCommand(command));
 }
Esempio n. 4
0
        protected virtual IMessage ExecuteCommand(IMethodCallMessage call)
        {
            object returnValue = _engine.ExecuteCommand(new MethodCallCommand(call.MethodName, call.Args));

            return(new ReturnMessage(returnValue, null, 0, call.LogicalCallContext, call));
        }
Esempio n. 5
0
 protected object ExecuteCommand(Bamboo.Prevalence.ICommand command)
 {
     return(_engine.ExecuteCommand(command));
 }
Esempio n. 6
0
        //public Prevayler()
        //{
        //}

        public static object Execute(ICommand command)
        {
            return(engine.ExecuteCommand(command));
        }