Exemplo n.º 1
0
        public ActionResult EditProfile()
        {
            EditProfile model = _unityContainer.Resolve <EditProfile>();

            model.Ready();
            return(View(new EcardModelItem <EditProfile>(model)));
        }
Exemplo n.º 2
0
        public ActionResult EditProfile([Bind(Prefix = "item")] EditProfile model)
        {
            IMessageProvider msg = null;

            if (ModelState.IsValid)
            {
                msg   = model.Save();
                model = _unityContainer.Resolve <EditProfile>();
            }
            model.Ready();
            return(View(new EcardModelItem <EditProfile>(model, msg)));
        }