Ejemplo n.º 1
0
        public async Task <IActionResult> PostCount(string id)
        {
            try
            {
                var count = await _postService.AddReadCount(id);

                return(Json(new { Count = count }));
            }
            catch
            {
                return(Json(new { Count = 0 }));
            }
        }