Exemplo n.º 1
0
        public List <ReferenceValueDto> PrepareSelectListByRefCode(string refMasterCode)
        {
            List <ReferenceValueDto> referenceValues        = new List <ReferenceValueDto>();
            ReferenceValueService    _referenceValueService = new ReferenceValueService();

            referenceValues = _referenceValueService.GetByRefMasterCode(refMasterCode);
            return(referenceValues);
        }
Exemplo n.º 2
0
        public List <SelectListDto> GetRefDropDownByRefMasterCode(string refMasterCode)
        {
            var lstSelectListDto = new List <SelectListDto>();
            var referenceValues  = new List <ReferenceValueDto>();
            ReferenceValueService _referenceValueService = new ReferenceValueService();

            referenceValues = _referenceValueService.GetByRefMasterCode(refMasterCode);

            foreach (var refvalue in referenceValues)
            {
                SelectListDto selectlist = new SelectListDto()
                {
                    ID   = refvalue.RefID,
                    Text = refvalue.RefValue
                };
                lstSelectListDto.Add(selectlist);
            }
            return(lstSelectListDto);
        }