public Result <IList <PlanOption> > GetAll(int plannerId) { var result = new Result <IList <PlanOption> >(); PlanOptionService planOptionService = new PlanOptionService(); result.Value = planOptionService.GetAll(plannerId); result.IsSuccess = true; return(result); }
public Result Delete(PlanOption planOption) { var result = new Result(); try { PlanOptionService planOptionService = new PlanOptionService(); planOptionService.Delete(planOption); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }