Exemplo n.º 1
0
        public ActionResult Sandbox()
        {
            SandboxModel model = new SandboxModel();

            BaseModel.CopyBaseData(CurrentBaseModel, model);

            model.Changes = SandboxContentProviderHost.CurrentProvider.GetMyWeenieChanges(GetUserToken());

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            IndexModel model   = CurrentIndexModel ?? new IndexModel();
            BaseModel  current = CurrentBaseModel;

            BaseModel.CopyBaseData(current, model);
            CurrentBaseModel = current;

            return(View(model));
        }
Exemplo n.º 3
0
        public ActionResult Submissions()
        {
            SandboxModel model   = new SandboxModel();
            BaseModel    current = CurrentBaseModel;

            BaseModel.CopyBaseData(current, model);
            CurrentBaseModel = current;

            if (User.IsInRole("Developer"))
            {
                List <WeenieChange> temp = SandboxContentProviderHost.CurrentProvider.GetAllWeenieChanges();
                model.Changes = temp.Where(x => x.Submitted).ToList();
            }
            else
            {
                model.Changes = SandboxContentProviderHost.CurrentProvider.GetMyWeenieChanges(GetUserToken());
            }

            return(View(model));
        }