예제 #1
0
        /// <summary>
        /// Method that deletes a post
        /// </summary>
        public async Task <bool> DeletePost(Dto.PostDeleteRequest post)
        {
            try
            {
                var newPost  = _mapper.Map <Domain.Dto.PostDeleteRequest>(post);
                var response = await _editorService.DeletePost(newPost);

                return(response);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }