public async Task <int> Count([FromBody] PaymentMethodMaster_PaymentMethodFilterDTO PaymentMethodMaster_PaymentMethodFilterDTO) { if (!ModelState.IsValid) { throw new MessageException(ModelState); } PaymentMethodFilter PaymentMethodFilter = ConvertFilterDTOToFilterEntity(PaymentMethodMaster_PaymentMethodFilterDTO); return(await PaymentMethodService.Count(PaymentMethodFilter)); }