예제 #1
0
        public List <MuscularGroup> FindMuscularGroups()
        {
            var list = _muscularGroupModule.Find();

            if (list != null)
            {
                foreach (var muscularGroup in list)
                {
                    CompleteTranslation(muscularGroup);
                }
            }
            return(list);
        }
예제 #2
0
        public List <MuscularGroup> FindMuscularGroups(MuscularGroupCriteria muscularGroupCriteria = null)
        {
            var muscularGroupList = _module.Find(muscularGroupCriteria);

            if (muscularGroupList != null)
            {
                foreach (var muscularGroup in muscularGroupList)
                {
                    if (muscularGroup != null)
                    {
                        muscularGroup.Name = Translation.GetInDB(MuscularGroupTransformer.GetTranslationKey(muscularGroup.Id));
                    }
                }
            }

            return(muscularGroupList);
        }