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)); }
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)); }