コード例 #1
0
        public ActionResult Like_Destroy([DataSourceRequest]DataSourceRequest request, LikeAdminViewModel like)
        {
            if (this.ModelState.IsValid)
            {
                this.likeServices.Delete(like.Id);
            }

            return this.Json(new[] { like }.ToDataSourceResult(request, this.ModelState));
        }
コード例 #2
0
        public ActionResult Like_Update([DataSourceRequest]DataSourceRequest request, LikeAdminViewModel like)
        {
            if (this.ModelState.IsValid)
            {
                var dbPageParagraph = this.likeServices.Edit(like.Id, like.Value);
            }

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