Пример #1
0
        public async Task <MailDto> GatMailByIdAsync(int id)
        {
            var entity = await _mailRepository.GetMailByIdAsync(id);

            return(entity != null ? new MailDto(entity) : null);
        }