Exemplo n.º 1
0
        public async Task <ActionResult <int> > Count([FromBody] TicketType_TicketTypeFilterDTO TicketType_TicketTypeFilterDTO)
        {
            if (!ModelState.IsValid)
            {
                throw new BindException(ModelState);
            }

            TicketTypeFilter TicketTypeFilter = ConvertFilterDTOToFilterEntity(TicketType_TicketTypeFilterDTO);

            TicketTypeFilter = TicketTypeService.ToFilter(TicketTypeFilter);
            int count = await TicketTypeService.Count(TicketTypeFilter);

            return(count);
        }