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");
        }
Ejemplo 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");
        }
Ejemplo n.º 3
0
 object ExecuteCommand(ICommand command)
 {
     return(_engine.ExecuteCommand(command));
 }
Ejemplo 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));
        }
Ejemplo n.º 5
0
 protected object ExecuteCommand(Bamboo.Prevalence.ICommand command)
 {
     return(_engine.ExecuteCommand(command));
 }
Ejemplo n.º 6
0
        //public Prevayler()
        //{
        //}

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