Ejemplo n.º 1
0
        public string GetApplicableProtocol(int studyId)
        {
            var result = new DataServiceResult <List <Core.Domain.StudyProtocol> >();

            try
            {
                var data = siterepo.GetApplicableProtocol(studyId);
                if (data != null)
                {
                    result.Success = true;
                    result.Value   = data;
                }
            }
            catch (Exception ex)
            {
                result.Success       = false;
                result.ExceptionInfo = new ExceptionInfo(ex);
            }
            return(JsonConvert.SerializeObject(result));
        }