Exemplo n.º 1
0
        public ServiceResponse <bool> Save(ExceptionDto exception)
        {
            if (exception == null)
            {
                throw new ArgumentNullException(nameof(exception));
            }

            var ex = exception.ToEntity();

            _unitOfWork.Get <CORE.Exception>().Add(ex);

            _unitOfWork.Save();

            return(new SuccessResponse <bool>(true));
        }