public Domain.OptionSet FindById(Guid id) { var dic = new Dictionary <string, string>(); dic.Add("optionsetid", id.ToString()); Domain.OptionSet entity = _cacheService.Get(dic, () => { var o = _optionSetRepository.FindById(id); if (o != null) { o.Items = _optionSetDetailFinder.FindByParentId(id); } return(o); }); if (entity != null) { WrapLocalizedLabel(entity); } return(entity); }