public Result <IList <SIPTypeInvestmentRecomendation> > GetAll(int plannerId) { var result = new Result <IList <SIPTypeInvestmentRecomendation> >(); SIPTypeInvestmentRecomendationService sIPTypeInvestmentRecomendationService = new SIPTypeInvestmentRecomendationService(); result.Value = sIPTypeInvestmentRecomendationService.GetAll(plannerId); result.IsSuccess = true; return(result); }
public Result Delete(SIPTypeInvestmentRecomendation SIPInvestmentRecomendation) { var result = new Result(); try { SIPTypeInvestmentRecomendationService SIPTypeInvestmentRecomendation = new SIPTypeInvestmentRecomendationService(); SIPTypeInvestmentRecomendation.Delete(SIPInvestmentRecomendation); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }