コード例 #1
0
        public Result <IList <InvRecommendationSend> > GetSendReports(int plannerId)
        {
            var result = new Result <IList <InvRecommendationSend> >();
            InvestmentRecommendationService investmentRecommendationService = new InvestmentRecommendationService();

            result.Value     = investmentRecommendationService.GetSendReports(plannerId);
            result.IsSuccess = true;
            return(result);
        }
コード例 #2
0
        public Result <InvestmentRecommendationRatio> Get(int plannerId)
        {
            var result = new Result <InvestmentRecommendationRatio>();
            InvestmentRecommendationService investmentRecommendationService = new InvestmentRecommendationService();

            result.Value     = investmentRecommendationService.Get(plannerId);
            result.IsSuccess = true;
            return(result);
        }
コード例 #3
0
        public Result AddSendReport(InvRecommendationSend invRecommendationSend)
        {
            var result = new Result();

            try
            {
                InvestmentRecommendationService investmentRecommendationService = new InvestmentRecommendationService();
                investmentRecommendationService.AddSendReport(invRecommendationSend);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }