Ejemplo n.º 1
0
        public OperationTypeFamily GetByCodeUserGroup(EnumCodeOtf enumCodeOtf, int idUserGroup)
        {
            var operationTypeFamily = Context.OperationTypeFamily
                                      .Where(x => x.IdUserGroup == idUserGroup &&
                                             x.Code == enumCodeOtf.ToString())
                                      .FirstOrDefault();

            return(operationTypeFamily);
        }
        public SelectDto GetByCodeUserGroupForSelect(EnumCodeOtf enumCodeOtf, int idUserGroup)
        {
            var operationTypeFamily = _operationTypeFamilyRepository.GetByCodeUserGroup(enumCodeOtf, idUserGroup);

            return(_mapper.Map <SelectDto>(operationTypeFamily));
        }