Exemplo n.º 1
0
        public void ApproveDeleteRequest(DeleteRequest deleteRequest, User loggedModerator)
        {
            if (deleteRequest == null)
            {
                throw new ArgumentException("Provided deleteRequestId is not valid");
            }

            deleteRequest.ApproveRequest(loggedModerator);
            _uow.Materials.Delete(deleteRequest.MaterialToDelete);
            _uow.SaveChanges();
        }