public Result <IList <LumsumInvestmentRecomendation> > GetAll(int plannerId) { var result = new Result <IList <LumsumInvestmentRecomendation> >(); LumsumInvestmentRecomendationService lumsumInvestmentRecomendationService = new LumsumInvestmentRecomendationService(); result.Value = lumsumInvestmentRecomendationService.GetAll(plannerId); result.IsSuccess = true; return(result); }
public Result Delete(LumsumInvestmentRecomendation lumsumInvestmentRecomendation) { var result = new Result(); try { LumsumInvestmentRecomendationService lumsumInvestmentRecomendationService = new LumsumInvestmentRecomendationService(); lumsumInvestmentRecomendationService.Delete(lumsumInvestmentRecomendation); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }