public Result <IList <OtherRecommendationSetting> > GetAll(int planId) { var result = new Result <IList <OtherRecommendationSetting> >(); OtherRecommedationSettingService otherRecommedationSettingService = new OtherRecommedationSettingService(); var otherRecommendationSettings = otherRecommedationSettingService.GetAll(planId); result.Value = (IList <OtherRecommendationSetting>)otherRecommendationSettings; result.IsSuccess = true; return(result); }
public Result Update(IList <OtherRecommendationSetting> otherRecommendationSettings) { var result = new Result(); try { OtherRecommedationSettingService otherRecommedationSettingService = new OtherRecommedationSettingService(); otherRecommedationSettingService.Update(otherRecommendationSettings); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }