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