Exemplo n.º 1
0
        public async Task <ProducerDTO> GetBy(int id)
        {
            var producer = await _producerRepo.GetBy(id);

            if (producer == null || producer.AuthStatus != AuthStatus.Approved)
            {
                return(null);
            }
            return(producer.ToDTO());
        }