public Result <IList <InvestmentSegment> > GetAll(int riskProfileId) { var result = new Result <IList <InvestmentSegment> >(); InvestmentSegmentService invSegmentService = new InvestmentSegmentService(); result.Value = invSegmentService.GetAll(riskProfileId); result.IsSuccess = true; return(result); }
public Result Delete(InvestmentSegment investmentSegment) { var result = new Result(); try { InvestmentSegmentService invSegmentService = new InvestmentSegmentService(); invSegmentService.Delete(investmentSegment); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }