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(); }