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); }
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); }
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); }