public ActionResult Delete([DataSourceRequest] DataSourceRequest request, ArticleAdminEditInputModel model)
        {
            if (model != null)
            {
                this.articles.Delete(model.Id);
            }

            return(this.Json(new[] { model }.ToDataSourceResult(request, this.ModelState)));
        }
        public ActionResult Edit([DataSourceRequest] DataSourceRequest request, ArticleAdminEditInputModel model)
        {
            if (model != null && this.ModelState.IsValid)
            {
                this.articles.Update(model.Id, model.Title, model.Content);
            }

            return(this.Json(new[] { model }.ToDataSourceResult(request, this.ModelState)));
        }