Пример #1
0
        public ActionResult IsResultPacketDownloadable(long eventId)
        {
            var ids = _eventCustomerResultRepository.GetClinicalFormGeneratedEventIds(new[] { eventId });

            if (ids.Count() < 1)
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }

            ids = _cdContentGeneratorTrackingRepository.GetCdContentGeneratedEventIds(ids);
            if (ids.Count() < 1)
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }
            return(Json(true, JsonRequestBehavior.AllowGet));
        }