Example #1
0
        public ActionResult ArticalGVPUpdate([ModelBinder(typeof(DevExpressEditorsBinder))]  ArticleViewModel Article)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    // Insert here a code to update the Article in your model
                    Article.Update();
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = Article.GetModelStateError(ModelState);
            }

            ViewData["ContentsValue"] = Article.Contents;
            var model = ArticleViewModel.GetArticalList();

            return(PartialView(ArticleView, model));
        }