示例#1
0
        public string GetReferalsByStudy(SiteApiParameter model)
        {
            var result = new DataServiceResult <List <ReferalModel> >();

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