Esempio n. 1
0
        public JsonResult GetTotalCount(NewsFilterVM filter)
        {
            try
            {
                var newsCount = _newsManager.GetTotalCount(filter);

                return(new JsonResult(new { success = true, data = newsCount }));
            }
            catch (Exception ex)
            {
                return(new JsonResult(new { success = false, msg = ex.Message }));
            }
        }