Example #1
0
        public async Task DeletePoste(int postId, int userId)
        {
            try
            {
                await _postsRepository.DeletePoste(postId, userId);

                LogInformation($"Successfully removed a post : PostId {postId}, UserId {userId} :");
            }
            catch (Exception ex)
            {
                LogError($"Failed to remove a post : PostId {postId}, UserId {userId}", ex);
            }
        }