コード例 #1
0
        public async Task <List <PaymentMethodMaster_PaymentMethodDTO> > List([FromBody] PaymentMethodMaster_PaymentMethodFilterDTO PaymentMethodMaster_PaymentMethodFilterDTO)
        {
            if (!ModelState.IsValid)
            {
                throw new MessageException(ModelState);
            }

            PaymentMethodFilter PaymentMethodFilter = ConvertFilterDTOToFilterEntity(PaymentMethodMaster_PaymentMethodFilterDTO);

            List <PaymentMethod> PaymentMethods = await PaymentMethodService.List(PaymentMethodFilter);

            return(PaymentMethods.Select(c => new PaymentMethodMaster_PaymentMethodDTO(c)).ToList());
        }