コード例 #1
0
        public OperationResultVo Remove(Guid currentUserId, Guid id)
        {
            try
            {
                pollDomainService.RemoveByContentId(id);

                userContentDomainService.Remove(id);

                unitOfWork.Commit();

                return(new OperationResultVo(true));
            }
            catch (Exception ex)
            {
                return(new OperationResultVo(ex.Message));
            }
        }