Пример #1
0
        public JsonResult GetNotice(String idNotice)
        {
            int          id     = Int32.Parse(idNotice);
            NoticeHelper nh     = new NoticeHelper();
            var          Notice = nh.getNotice(id);

            if (Notice != null)
            {
                return(Json(new { success = true, data = Notice }));
            }
            else
            {
                logger.Error("Error al intentar obtener la información detalles de noticia en la db. " + Environment.NewLine + DateTime.Now);
                return(Json(new { success = false, data = Notice, error = "Detalles de la noticia no disponibles." }));
            }
        }