Пример #1
0
        public async Task <ActionResult> Active(CommentSearchRequest search)
        {
            if (search.Id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            await _commentService.Active(search.Id, long.Parse(User.Identity.GetUserId()));

            return(PartialView("_ListAjax", await _commentService.GetPagedListAsync(new CommentSearchRequest
            {
                PageIndex = search.PageIndex,
                Body = search.Body
            })));
        }