public Result <IList <CurrentStatusInstrument> > Get(int plannerId, int goalId = 0) { var result = new Result <IList <CurrentStatusInstrument> >(); CurrentStatusInstrumentService csService = new CurrentStatusInstrumentService(); result.Value = csService.GetMappedInstrumentWithGoal(plannerId, goalId); result.IsSuccess = true; return(result); }
public Result <IList <CurrentStatusInstrument> > GetAll(int plannerId) { var result = new Result <IList <CurrentStatusInstrument> >(); try { CurrentStatusInstrumentService csService = new CurrentStatusInstrumentService(); result.Value = csService.GetAllCurrentStatusAmount(plannerId); result.IsSuccess = true; return(result); } catch (Exception ex) { result.Value = null; result.IsSuccess = false; return(result); } }