Beispiel #1
0
        public Result <IList <STPTypeInvestmentRecomendation> > GetAll(int plannerId)
        {
            var result = new Result <IList <STPTypeInvestmentRecomendation> >();
            STPInvestmentRecomendationService stpInvestmentRecomendationService = new STPInvestmentRecomendationService();

            result.Value     = stpInvestmentRecomendationService.GetAll(plannerId);
            result.IsSuccess = true;
            return(result);
        }
Beispiel #2
0
        public Result Delete(STPTypeInvestmentRecomendation lumsumInvestmentRecomendation)
        {
            var result = new Result();

            try
            {
                STPInvestmentRecomendationService sTPInvestmentRecomendationService =
                    new STPInvestmentRecomendationService();
                sTPInvestmentRecomendationService.Delete(lumsumInvestmentRecomendation);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }