Exemple #1
0
        public async Task <CosmosPostDto> GetPostByIdAsync(string id)
        {
            var post = await _postRepository.GetByIdAsync(id);

            return(_mapper.Map <CosmosPostDto>(post));
        }
Exemple #2
0
        public async Task DeletePostAsync(string id)
        {
            var post = await _postRepository.GetByIdAsync(id);

            await _postRepository.DeleteAsync(post);
        }